Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

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

Fields inherited from class ncsa.horizon.system.HorizonSupportedFileFormat
reader
 
Fields inherited from class ncsa.horizon.model.SupportedFileFormat
description, exts, mimetypes, mn, name, reference, refURL
 
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)
           
 
Method Summary
Viewable createViewable(int which)
          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.
SupportedFileFormat getUnattachedInstance()
           
 
Methods inherited from class ncsa.horizon.system.HorizonSupportedFileFormat
createFormatHandler, createReaderND, getUnattachedInstance
 
Methods inherited from class ncsa.horizon.model.SupportedFileFormat
getContentTypes, getDescription, getExtensions, getMagicNumber, getName, getReference, getReferenceURL
 
Methods inherited from class ncsa.horizon.model.FileFormat
createFormatHandler, getContentTypes, getDescription, getExtensions, getMagicNumber, getName, getReference, getReferenceURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD