public class FormatFileFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FileFilter, java.lang.Comparable
| Constructor and Description |
|---|
FormatFileFilter(loci.formats.IFormatReader reader)
Constructs a new filter that accepts files of the given reader's type.
|
FormatFileFilter(loci.formats.IFormatReader reader,
boolean allowOpen)
Constructs a new filter that accepts files of the given reader's type,
allowing the reader to open files only if the allowOpen flag is set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File f)
Accepts files in accordance with the file format reader.
|
int |
compareTo(java.lang.Object o)
Compares two FileFilter objects alphanumerically.
|
java.lang.String |
getDescription()
Gets the filter's description.
|
java.lang.String |
toString()
Gets a string representation of this file filter.
|
public FormatFileFilter(loci.formats.IFormatReader reader)
public FormatFileFilter(loci.formats.IFormatReader reader,
boolean allowOpen)
reader - The reader to use for verifying a file's type.allowOpen - Whether it is ok to open a file to determine its type.public boolean accept(java.io.File f)
accept in interface java.io.FileFilteraccept in class javax.swing.filechooser.FileFilterpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilterpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparable