Class ncsa.horizon.model.compgraph.CompGraphFileFormat
java.lang.Object
|
+--ncsa.horizon.model.FileFormat
|
+--ncsa.horizon.model.SupportedFileFormat
|
+--ncsa.horizon.system.HorizonSupportedFileFormat
|
+--ncsa.horizon.model.compgraph.CompGraphFileFormat
now described via SimplySupportedFileFormat
- public class CompGraphFileFormat
- extends HorizonSupportedFileFormat
a class identifying the GIF or JPEG image format.
- See Also:
- Serialized Form
|
Constructor Summary
|
CompGraphFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
MagicNumber mnum,
java.lang.String[] ex,
java.lang.String[] mimes,
java.lang.String readerNDClass)
|
CompGraphFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
java.lang.String[] ex,
MagicNumber mnum,
java.lang.String[] mimes)
|
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
CompGraphFileFormat
public CompGraphFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
MagicNumber mnum,
java.lang.String[] ex,
java.lang.String[] mimes,
java.lang.String readerNDClass)
CompGraphFileFormat
public CompGraphFileFormat(java.lang.String nm,
java.lang.String desc,
java.lang.String ref,
java.lang.String refURL,
java.lang.String[] ex,
MagicNumber mnum,
java.lang.String[] mimes)
getUnattachedInstance
protected SupportedFileFormat getUnattachedInstance()
- Overrides:
- getUnattachedInstance in class HorizonSupportedFileFormat
createViewable
public Viewable createViewable(int which)
throws java.lang.InstantiationException,
java.lang.ArrayIndexOutOfBoundsException,
DataAccessException
- return a Viewable object appropriate for this file format, or null
if a file is not attached to this format or the format is not
supported by a Viewable class. The default implementation returns
a ReaderEnabledViewable using the result of createReaderND();
however, some implementations may override this to return a
format-specific Viewable.
- Parameters:
which
- an index to the desired array where 0 is the first
array.- Throws:
- java.lang.ArrayIndexOutOfBoundsException - if which < 0 or > the
number of arrays in the file.
- DataAccessException - if an IO error occurs or the data
is otherwise inaccessible at the moment.
- java.lang.InstantiationException - if the instantiation of the
Viewable fails