Class ImageFilter
java.lang.Object
javax.swing.filechooser.FileFilter
com.lowagie.toolbox.arguments.filters.ImageFilter
Filters images in a FileChooser.
- Since:
- 2.1.1 (imported from itexttoolbox project)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
-
Field Details
-
IMAGES
Array with all kinds of image extensions. -
filter
public boolean[] filterarray that enables you to filter on image types.
-
-
Constructor Details
-
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 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 allowed
-
-
Method Details
-
accept
- Specified by:
accept
in classFileFilter
- Parameters:
f
- File- Returns:
- boolean
- See Also:
-
getDescription
- Specified by:
getDescription
in classFileFilter
- Returns:
- String
- See Also:
-