public class Vis5DForm extends Form implements FormFileInformer
| Modifier and Type | Field and Description |
|---|---|
static int |
HEIGHT |
static int |
WIDTH
the width and height of the UI frame
|
| Constructor and Description |
|---|
Vis5DForm() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String id,
Data data,
boolean replace)
Add data to an existing data object.
|
String[] |
getDefaultSuffixes()
Get default suffixes for files/URLs handeled by this form.
|
FlatField |
getFlatField(Vis5DFile v5dfile,
int time_idx) |
FormNode |
getForms(Data data)
Return the data forms that are compatible with a data object.
|
boolean |
isThisType(byte[] block)
Check to see if the block contains the magic number for this form.
|
boolean |
isThisType(String name)
Check to see if the file name might be right for this form.
|
static void |
main(String[] args)
run 'java visad.data.vis5d.Vis5DForm QLQ.v5d' to test
|
static FlatField |
makeFlatField(Vis5DFile v5dfile,
int time_idx) |
DataImpl |
open(String id)
Open an existing data object.
|
DataImpl |
open(URL url)
Open a data object specified as a URL.
|
void |
save(String id,
Data data,
boolean replace)
Save a VisAD data object in this form.
|
getMathTypepublic static int WIDTH
public static int HEIGHT
public boolean isThisType(String name)
FormFileInformerisThisType in interface FormFileInformername - name of the filepublic boolean isThisType(byte[] block)
FormFileInformerisThisType in interface FormFileInformerblock - block of bytes from filepublic String[] getDefaultSuffixes()
FormFileInformergetDefaultSuffixes in interface FormFileInformerpublic void save(String id, Data data, boolean replace) throws BadFormException, IOException, RemoteException, VisADException
FormNodesave in class FormNodeBadFormExceptionIOExceptionRemoteExceptionVisADExceptionpublic void add(String id, Data data, boolean replace) throws BadFormException
FormNodeadd in class FormNodeBadFormExceptionpublic DataImpl open(String id) throws BadFormException, IOException, VisADException
FormNodeopen in class FormNodeBadFormExceptionIOExceptionVisADExceptionpublic FlatField getFlatField(Vis5DFile v5dfile, int time_idx) throws VisADException, IOException, BadFormException
public static FlatField makeFlatField(Vis5DFile v5dfile, int time_idx) throws VisADException, IOException, BadFormException
public DataImpl open(URL url) throws BadFormException, VisADException, IOException
FormNodeopen in class FormNodeBadFormExceptionVisADExceptionIOExceptionpublic FormNode getForms(Data data)
FormNodepublic static void main(String[] args) throws VisADException, RemoteException, IOException
VisADExceptionRemoteExceptionIOExceptionCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.