net.aerith.misao.io.filechooser
Class ImageFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
              |
              +--net.aerith.misao.io.filechooser.ImageFileFilter
Direct Known Subclasses:
FitsFilter, JimiFileFilter, PpmFilter, RawGrayFilter, SbigFilter

public abstract class ImageFileFilter
extends ExtensionBasedFileFilter

The ImageFileFilter is an abstract base classs of FileFilter of image files.


Fields inherited from class net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
accept_compressed
 
Constructor Summary
ImageFileFilter()
           
 
Method Summary
 java.lang.String[] getAcceptableExtensions()
          Returns the acceptable extensions.
static ImageFileFilter[] getBitmapFilters()
          Gets the list of filters of bitmap image file formats.
abstract  Format getFormat(java.io.File file)
          Gets the proper format for the image type.
abstract  java.lang.String getFormatID()
          Gets the format ID recorded in an XML document.
static ImageFileFilter[] getSupportedFilters()
          Gets the list of filters of supported image file formats.
abstract  java.lang.String getTypicalExtension()
          Gets the typical file extension.
 
Methods inherited from class net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
accept, acceptCompressed, getTruncatedFilename
 
Methods inherited from class javax.swing.filechooser.FileFilter
getDescription
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

ImageFileFilter

public ImageFileFilter()
Method Detail

getAcceptableExtensions

public java.lang.String[] getAcceptableExtensions()
Returns the acceptable extensions.
Overrides:
getAcceptableExtensions in class ExtensionBasedFileFilter
Returns:
the acceptable extensions.

getFormat

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

getFormatID

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

getTypicalExtension

public abstract java.lang.String getTypicalExtension()
Gets the typical file extension.
Returns:
the typical file extension.

getSupportedFilters

public static ImageFileFilter[] getSupportedFilters()
Gets the list of filters of supported image file formats.
Returns:
the list of filters of supported image file formats.

getBitmapFilters

public static ImageFileFilter[] getBitmapFilters()
Gets the list of filters of bitmap image file formats.
Returns:
the list of filters of bitmap image file formats.