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.
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 |
ImageFileFilter
public ImageFileFilter()
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.