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

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

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

Filters a supported format for writing image files.

Author:
Bruno Klava

Method Summary
 boolean accept(java.io.File file)
          Returns if the given file has an extension of a supported format for writing image files.
 java.lang.String getDescription()
          Returns a description of the format for writing image files of this filter.
 java.lang.String getExtension()
          Returns the extension that this filter accepts.
static java.util.List<WriteFormat> getWriteFormatFilters()
          Returns a list with a WriteFormat filter for each supported format for writing image files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWriteFormatFilters

public static java.util.List<WriteFormat> getWriteFormatFilters()
Returns a list with a WriteFormat filter for each supported format for writing image files.

Returns:
a list with a WriteFormat filter for each supported format for writing image files

getExtension

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

Returns:
the extension that this filter accepts

accept

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

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

getDescription

public java.lang.String getDescription()
Returns a description of the format for writing image files of this filter.

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