com.approximatrix.charting.test
Class ImageFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.approximatrix.charting.test.ImageFilter

 class ImageFilter
extends javax.swing.filechooser.FileFilter

Simple file filter used in the sample test application GraphFrame for determinign if a file format is supported

Author:
muller

Field Summary
(package private)  java.lang.StringBuffer descr
           
protected  java.util.Set supported
           
 
Constructor Summary
ImageFilter(java.lang.String[] accepted)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supported

protected java.util.Set supported

descr

java.lang.StringBuffer descr
Constructor Detail

ImageFilter

public ImageFilter(java.lang.String[] accepted)
Method Detail

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter