net.kolls.railworld.io
Class ImageFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.kolls.railworld.io.ImageFilter

public class ImageFilter
extends javax.swing.filechooser.FileFilter

Filters for image files.

Author:
Steve Kollmansberger

Constructor Summary
ImageFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Accept all directories and all gif, jpg, tiff, or png files.
 java.lang.String getDescription()
           
 
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(java.io.File f)
Accept all directories and all gif, jpg, tiff, or png files.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Returns:
true to accept.

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
The description of this filter