net.aerith.misao.io.filechooser
Class BmpFilter

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

public class BmpFilter
extends JimiFileFilter

The BmpFilter represents a FileFilter to select BMP files.


Fields inherited from class net.aerith.misao.io.filechooser.ExtensionBasedFileFilter
accept_compressed
 
Constructor Summary
BmpFilter()
          Constructs a BmpFilter.
 
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 getTypicalExtension()
          Gets the typical file extension.
 
Methods inherited from class net.aerith.misao.io.filechooser.JimiFileFilter
getBitmapJimiFilters, getSupportedJimiFilters
 
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, getTruncatedFilename
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

BmpFilter

public BmpFilter()
Constructs a BmpFilter.
Method Detail

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.