|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.filechooser.FileFilter comirva.io.filefilter.GraphicFileFilter
public class GraphicFileFilter
This class implements a FileFilter for *.png and *.jpg files which are graphic files and used to store the content of the visualization pane.
Constructor Summary | |
---|---|
GraphicFileFilter()
|
Method Summary | |
---|---|
boolean |
accept(File f)
Returns true if the File f should be shown in the directory pane,
false if this is not the case. |
String |
getDescription()
Returns the description of the filter. |
String |
getExtension(File f)
Returns the extension of the file's name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphicFileFilter()
Method Detail |
---|
public boolean accept(File f)
true
if the File f
should be shown in the directory pane,
false
if this is not the case.
accept
in interface FileFilter
accept
in class FileFilter
FileFilter.accept(java.io.File)
public String getExtension(File f)
f
- the File for which the extension should be returned
f
public String getDescription()
getDescription
in class FileFilter
FileFilter.getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |