visad.data.vis5d
Class Vis5DForm
- java.lang.Object
-
- visad.data.FormNode
-
- visad.data.Form
-
- 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
Fields Modifier and Type Field and Description static intHEIGHTstatic intWIDTHthe width and height of the UI frame
-
Constructor Summary
Constructors Constructor and Description Vis5DForm()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(java.lang.String id, Data data, boolean replace)Add data to an existing data object.java.lang.String[]getDefaultSuffixes()Get default suffixes for files/URLs handeled by this form.FlatFieldgetFlatField(Vis5DFile v5dfile, int time_idx)FormNodegetForms(Data data)Return the data forms that are compatible with a data object.booleanisThisType(byte[] block)Check to see if the block contains the magic number for this form.booleanisThisType(java.lang.String name)Check to see if the file name might be right for this form.static voidmain(java.lang.String[] args)run 'java visad.data.vis5d.Vis5DForm QLQ.v5d' to teststatic FlatFieldmakeFlatField(Vis5DFile v5dfile, int time_idx)DataImplopen(java.lang.String id)Open an existing data object.DataImplopen(java.net.URL url)Open a data object specified as a URL.voidsave(java.lang.String id, Data data, boolean replace)Save a VisAD data object in this form.-
Methods inherited from class visad.data.Form
getMathType
-
-
-
-
Field Detail
-
WIDTH
public static int WIDTH
the width and height of the UI frame
-
HEIGHT
public static int HEIGHT
-
-
Method Detail
-
isThisType
public boolean isThisType(java.lang.String name)
Description copied from interface:FormFileInformerCheck to see if the file name might be right for this form.- Specified by:
isThisTypein interfaceFormFileInformer- Parameters:
name- name of the file- Returns:
- true if the name is right for this type of form
-
isThisType
public boolean isThisType(byte[] block)
Description copied from interface:FormFileInformerCheck to see if the block contains the magic number for this form.- Specified by:
isThisTypein interfaceFormFileInformer- Parameters:
block- block of bytes from file- Returns:
- true if the magic number is right
-
getDefaultSuffixes
public java.lang.String[] getDefaultSuffixes()
Description copied from interface:FormFileInformerGet default suffixes for files/URLs handeled by this form.- Specified by:
getDefaultSuffixesin interfaceFormFileInformer- Returns:
- array of suffixes
-
save
public void save(java.lang.String id, Data data, boolean replace) throws BadFormException, java.io.IOException, java.rmi.RemoteException, VisADExceptionDescription copied from class:FormNodeSave a VisAD data object in this form.- Specified by:
savein classFormNode- Throws:
BadFormExceptionjava.io.IOExceptionjava.rmi.RemoteExceptionVisADException
-
add
public void add(java.lang.String id, Data data, boolean replace) throws BadFormExceptionDescription copied from class:FormNodeAdd data to an existing data object.- Specified by:
addin classFormNode- Throws:
BadFormException
-
open
public DataImpl open(java.lang.String id) throws BadFormException, java.io.IOException, VisADException
Description copied from class:FormNodeOpen an existing data object.- Specified by:
openin classFormNode- Throws:
BadFormExceptionjava.io.IOExceptionVisADException
-
getFlatField
public FlatField getFlatField(Vis5DFile v5dfile, int time_idx) throws VisADException, java.io.IOException, BadFormException
- Throws:
VisADExceptionjava.io.IOExceptionBadFormException
-
makeFlatField
public static FlatField makeFlatField(Vis5DFile v5dfile, int time_idx) throws VisADException, java.io.IOException, BadFormException
- Throws:
VisADExceptionjava.io.IOExceptionBadFormException
-
open
public DataImpl open(java.net.URL url) throws BadFormException, VisADException, java.io.IOException
Description copied from class:FormNodeOpen a data object specified as a URL.- Specified by:
openin classFormNode- Throws:
BadFormExceptionVisADExceptionjava.io.IOException
-
getForms
public FormNode getForms(Data data)
Description copied from class:FormNodeReturn the data forms that are compatible with a data object.
-
main
public static void main(java.lang.String[] args) throws VisADException, java.rmi.RemoteException, java.io.IOExceptionrun 'java visad.data.vis5d.Vis5DForm QLQ.v5d' to test- Throws:
VisADExceptionjava.rmi.RemoteExceptionjava.io.IOException
-
-
DMelt 3.0 © DataMelt by jWork.ORG