com.lowagie.tools.arguments

Class ImageFilter

public class ImageFilter extends FileFilter

Filters images in a FileChooser.
Field Summary
boolean[]filter
array that enables you to filter on imagetypes.
static String[]IMAGES
Array with all kinds of image extensions.
Constructor Summary
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.
Method Summary
booleanaccept(File f)
StringgetDescription()

Field Detail

filter

public boolean[] filter
array that enables you to filter on imagetypes.

IMAGES

public static final String[] IMAGES
Array with all kinds of image extensions.

Constructor Detail

ImageFilter

public ImageFilter()
Constructs an ImageFilter allowing all images.

ImageFilter

public ImageFilter(boolean jpeg, boolean png, boolean gif, boolean bmp, boolean wmf, boolean tiff)
Constructs an ImageFilter allowing some images.

Parameters: jpeg indicates if jpegs are allowed png indicates if pngs are allowed gif indicates if gifs are allowed bmp indicates if bmps are allowed wmf indicates if wmfs are allowed tiff indicates if tiffs are allowed

Method Detail

accept

public boolean accept(File f)

See Also: javax.swing.filechooser.FileFilter#accept(java.io.File)

getDescription

public String getDescription()

See Also: javax.swing.filechooser.FileFilter#getDescription()