|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
com.jgraph.pad.util.JGraphpadFileFilter.ImageFileFilter
Utility file filter to accept all image formats supported by image io.
ImageIO.getReaderFormatNames()| Field Summary | |
protected String |
desc
Description of the filter. |
protected static String[] |
imageFormats
Holds the accepted file format extensions for images. |
| Constructor Summary | |
JGraphpadFileFilter.ImageFileFilter(String description)
Constructs a new file filter for all supported image formats using the specified description. |
|
| Method Summary | |
boolean |
accept(File file)
Returns true if the file is a directory or ends with a known image extension. |
String |
getDescription()
Returns the description. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static String[] imageFormats
protected String desc
| Constructor Detail |
public JGraphpadFileFilter.ImageFileFilter(String description)
description - The description to use for the file filter.| Method Detail |
public boolean accept(File file)
file - The file to be checked.
public String getDescription()
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||