cgl.narada.topology.viewer
Class ImageFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by cgl.narada.topology.viewer.ImageFilter

public class ImageFilter
extends FileFilter

This class aids JFileChooser to filter png files.


Constructor Summary
ImageFilter()
           
 
Method Summary
 boolean accept(File f)
          Accept all directories and all png files.
 String getDescription()
          Returns description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFilter

public ImageFilter()
Method Detail

accept

public boolean accept(File f)
Accept all directories and all png files.

Specified by:
accept in class FileFilter
Parameters:
f - File
Returns:
a boolean, true if the file is .png file otherwise false.

getDescription

public String getDescription()
Returns description of this filter.

Specified by:
getDescription in class FileFilter


For comments and suggestions please send e-mail to The NaradaBrokering Project