visad.data.vis5d
Class Vis5DForm

java.lang.Object
  extended by visad.data.FormNode
      extended by visad.data.Form
          extended by visad.data.vis5d.Vis5DForm
All Implemented Interfaces:
FormFileInformer
Direct Known Subclasses:
Vis5DAdaptedForm

public class Vis5DForm
extends Form
implements FormFileInformer

Vis5DForm is the VisAD data format adapter for Vis5D files.


Field Summary
static int HEIGHT
           
static int WIDTH
          the width and height of the UI frame
 
Fields inherited from class visad.data.Form
mathType
 
Constructor Summary
Vis5DForm()
           
 
Method Summary
 void add(java.lang.String id, Data data, boolean replace)
          Add data to an existing data object.
 java.lang.String[] getDefaultSuffixes()
           
 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)
           
 boolean isThisType(java.lang.String name)
           
static void main(java.lang.String[] args)
          run 'java visad.data.vis5d.Vis5DForm QLQ.v5d' to test
static FlatField makeFlatField(Vis5DFile v5dfile, int time_idx)
           
 DataImpl open(java.lang.String id)
          Open an existing data object.
 DataImpl open(java.net.URL url)
          Open a data object specified as a URL.
 void save(java.lang.String id, Data data, boolean replace)
          Save a VisAD data object in this form.
 
Methods inherited from class visad.data.Form
getMathType
 
Methods inherited from class visad.data.FormNode
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIDTH

public static int WIDTH
the width and height of the UI frame


HEIGHT

public static int HEIGHT
Constructor Detail

Vis5DForm

public Vis5DForm()
Method Detail

isThisType

public boolean isThisType(java.lang.String name)
Specified by:
isThisType in interface FormFileInformer

isThisType

public boolean isThisType(byte[] block)
Specified by:
isThisType in interface FormFileInformer

getDefaultSuffixes

public java.lang.String[] getDefaultSuffixes()
Specified by:
getDefaultSuffixes in interface FormFileInformer

save

public void save(java.lang.String id,
                 Data data,
                 boolean replace)
          throws BadFormException,
                 java.io.IOException,
                 java.rmi.RemoteException,
                 VisADException
Description copied from class: FormNode
Save a VisAD data object in this form.

Specified by:
save in class FormNode
Throws:
BadFormException
java.io.IOException
java.rmi.RemoteException
VisADException

add

public void add(java.lang.String id,
                Data data,
                boolean replace)
         throws BadFormException
Description copied from class: FormNode
Add data to an existing data object.

Specified by:
add in class FormNode
Throws:
BadFormException

open

public DataImpl open(java.lang.String id)
              throws BadFormException,
                     java.io.IOException,
                     VisADException
Description copied from class: FormNode
Open an existing data object.

Specified by:
open in class FormNode
Throws:
BadFormException
java.io.IOException
VisADException

getFlatField

public FlatField getFlatField(Vis5DFile v5dfile,
                              int time_idx)
                       throws VisADException,
                              java.io.IOException,
                              BadFormException
Throws:
VisADException
java.io.IOException
BadFormException

makeFlatField

public static FlatField makeFlatField(Vis5DFile v5dfile,
                                      int time_idx)
                               throws VisADException,
                                      java.io.IOException,
                                      BadFormException
Throws:
VisADException
java.io.IOException
BadFormException

open

public DataImpl open(java.net.URL url)
              throws BadFormException,
                     VisADException,
                     java.io.IOException
Description copied from class: FormNode
Open a data object specified as a URL.

Specified by:
open in class FormNode
Throws:
BadFormException
VisADException
java.io.IOException

getForms

public FormNode getForms(Data data)
Description copied from class: FormNode
Return the data forms that are compatible with a data object.

Specified by:
getForms in class FormNode

main

public static void main(java.lang.String[] args)
                 throws VisADException,
                        java.rmi.RemoteException,
                        java.io.IOException
run 'java visad.data.vis5d.Vis5DForm QLQ.v5d' to test

Throws:
VisADException
java.rmi.RemoteException
java.io.IOException