Class DefaultFileFilter.ImageFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.editor.DefaultFileFilter.ImageFileFilter
- Enclosing class:
- DefaultFileFilter
Utility file filter to accept all image formats supported by image io.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImageFileFilter(String description) Constructs a new file filter for all supported image formats using the specified description. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the file is a directory or ends with a known image extension.Returns the description.
-
Field Details
-
imageFormats
Holds the accepted file format extensions for images. -
desc
Description of the filter.
-
-
Constructor Details
-
ImageFileFilter
Constructs a new file filter for all supported image formats using the specified description.- Parameters:
description- The description to use for the file filter.
-
-
Method Details
-
accept
Returns true if the file is a directory or ends with a known image extension.- Specified by:
acceptin classFileFilter- Parameters:
file- The file to be checked.- Returns:
- Returns true if the file is accepted.
-
getDescription
Returns the description.- Specified by:
getDescriptionin classFileFilter- Returns:
- Returns the description.
-