br.usp.ime.klava.segmentit.formats
Class ReadFormats

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by br.usp.ime.klava.segmentit.formats.ReadFormats

public class ReadFormats
extends javax.swing.filechooser.FileFilter

Filters the supported formats for reading image files.

Author:
Bruno Klava

Constructor Summary
ReadFormats()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns if the given file has an extension of a supported format for reading image files.
 java.lang.String getDescription()
          Returns a description of the supported formats for reading image files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadFormats

public ReadFormats()
Method Detail

accept

public boolean accept(java.io.File file)
Returns if the given file has an extension of a supported format for reading image files.

Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Returns a description of the supported formats for reading image files.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter