net.grelf.grip
Class FileIOImageFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.grelf.grip.FileIOImageFilter

public class FileIOImageFilter
extends javax.swing.filechooser.FileFilter

Support class for FileIO. Provides image file type selection for users of the file chooser in FileIO.


Field Summary
static int ACCUM
           
static int ANY
           
static int BMP
           
static int GIF
           
static int JPG
           
static int PNG
           
static int RAW
           
static int TIF
           
 
Constructor Summary
FileIOImageFilter()
          Filter to select any image kind for which we have JAI plug-ins.
FileIOImageFilter(int aKind)
          Filter to select a specific image kind.
 
Method Summary
 boolean accept(java.io.File f)
          Whether the filter can accept the given file.
static java.lang.String[] getAllKnownExtensions()
           
 java.lang.String getDescription()
          Get a concise description of what the filter can accept.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANY

public static final int ANY
See Also:
Constant Field Values

BMP

public static final int BMP
See Also:
Constant Field Values

GIF

public static final int GIF
See Also:
Constant Field Values

JPG

public static final int JPG
See Also:
Constant Field Values

PNG

public static final int PNG
See Also:
Constant Field Values

TIF

public static final int TIF
See Also:
Constant Field Values

RAW

public static final int RAW
See Also:
Constant Field Values

ACCUM

public static final int ACCUM
See Also:
Constant Field Values
Constructor Detail

FileIOImageFilter

public FileIOImageFilter()
Filter to select any image kind for which we have JAI plug-ins.


FileIOImageFilter

public FileIOImageFilter(int aKind)
Filter to select a specific image kind.

Method Detail

accept

public boolean accept(java.io.File f)
Whether the filter can accept the given file.

Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Get a concise description of what the filter can accept.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter

getAllKnownExtensions

public static java.lang.String[] getAllKnownExtensions()