public class ImageFilter
extends javax.swing.filechooser.FileFilter
Modifier and Type | Field and Description |
---|---|
boolean[] |
filter
array that enables you to filter on imagetypes.
|
static java.lang.String[] |
IMAGES
Array with all kinds of image extensions.
|
Constructor and Description |
---|
ImageFilter()
Constructs an ImageFilter allowing all images.
|
ImageFilter(boolean jpeg,
boolean png,
boolean gif,
boolean bmp,
boolean wmf,
boolean tiff)
Constructs an ImageFilter allowing some images.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f) |
java.lang.String |
getDescription() |
public static final java.lang.String[] IMAGES
public boolean[] filter
public ImageFilter()
public ImageFilter(boolean jpeg, boolean png, boolean gif, boolean bmp, boolean wmf, boolean tiff)
jpeg
- indicates if jpegs are allowedpng
- indicates if pngs are allowedgif
- indicates if gifs are allowedbmp
- indicates if bmps are allowedwmf
- indicates if wmfs are allowedtiff
- indicates if tiffs are allowedpublic boolean accept(java.io.File f)
accept
in class javax.swing.filechooser.FileFilter
FileFilter.accept(java.io.File)
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
FileFilter.getDescription()