Class ImageFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- com.lowagie.toolbox.arguments.filters.ImageFilter
-
public class ImageFilter extends javax.swing.filechooser.FileFilterFilters images in a FileChooser.- Since:
- 2.1.1 (imported from itexttoolbox project)
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File f)java.lang.StringgetDescription()
-
-
-
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 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 Detail
-
accept
public boolean accept(java.io.File f)
- Specified by:
acceptin classjavax.swing.filechooser.FileFilter- Parameters:
f- File- Returns:
- boolean
- See Also:
FileFilter.accept(java.io.File)
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classjavax.swing.filechooser.FileFilter- Returns:
- String
- See Also:
FileFilter.getDescription()
-
-