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

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

public final class MarkerFormat
extends javax.swing.filechooser.FileFilter

Filters the supported format for reading and writing markers files. The only format supported is PNG, as it is the only format supported for both reading and writing (in the Sun's Java implementation) that also supports transparency.

Author:
Bruno Klava

Constructor Summary
MarkerFormat()
           
 
Method Summary
 boolean accept(java.io.File file)
          Returns if the given file has an extension of a supported format for reading or writing markers files.
 java.lang.String getDescription()
          Returns a description of the supported format for reading or writing markers files.
 java.lang.String getExtension()
          Returns the extension that this filter accepts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkerFormat

public MarkerFormat()
Method Detail

accept

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

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

getExtension

public java.lang.String getExtension()
Returns the extension that this filter accepts.

Returns:
the extension that this filter accepts

getDescription

public java.lang.String getDescription()
Returns a description of the supported format for reading or writing markers files.

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