net.aerith.misao.io.filechooser
Class SbigFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
              |
              +--net.aerith.misao.io.filechooser.ImageFileFilter
                    |
                    +--net.aerith.misao.io.filechooser.SbigFilter

public class SbigFilter
extends ImageFileFilter

The SbigFilter represents a FileFilter to select SBIG files.


Fields inherited from class net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
accept_compressed
 
Constructor Summary
SbigFilter()
          Constructs a SbigFilter.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of this filter.
 Format getFormat(java.io.File file)
          Gets the proper format for the image type.
 java.lang.String getFormatID()
          Gets the format ID recorded in an XML document.
 java.lang.String getTruncatedFilename(java.io.File file)
          Gets the file name without extension.
 java.lang.String getTypicalExtension()
          Gets the typical file extension.
 
Methods inherited from class net.aerith.misao.io.filechooser.ImageFileFilter
getAcceptableExtensions, getBitmapFilters, getSupportedFilters
 
Methods inherited from class net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
accept, acceptCompressed
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

SbigFilter

public SbigFilter()
Constructs a SbigFilter.
Method Detail

getTruncatedFilename

public java.lang.String getTruncatedFilename(java.io.File file)
Gets the file name without extension.
Overrides:
getTruncatedFilename in class ExtensionBasedFileFilter
Parameters:
file - the image file.
Returns:
the file name without extension.

getDescription

public java.lang.String getDescription()
Returns the description of this filter.
Overrides:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the description of this filter.

getFormat

public Format getFormat(java.io.File file)
                 throws java.net.MalformedURLException,
                        UnsupportedFileTypeException
Gets the proper format for the image type.
Overrides:
getFormat in class ImageFileFilter
Returns:
the image file format.
Throws:
java.net.MalformedURLException - if an unknown protocol is specified.
UnsupportedFileTypeException - if the file type is unsupported.

getFormatID

public java.lang.String getFormatID()
Gets the format ID recorded in an XML document.
Overrides:
getFormatID in class ImageFileFilter
Returns:
the format ID recorded in an XML document.

getTypicalExtension

public java.lang.String getTypicalExtension()
Gets the typical file extension.
Overrides:
getTypicalExtension in class ImageFileFilter
Returns:
the typical file extension.