Class AnalyzeFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
com.xinapse.multisliceimage.Analyze.AnalyzeFileFilter
A file filter for Analyze header files. The accept method returns
true
if the
file name end with ".hdr" or ".HDR".-
Field Summary
Modifier and TypeFieldDescriptionstatic final AnalyzeFileFilter
The only instance of a NIFTIFileFilter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the given file probably represents an Analyze header file.Returns "Analyze Images".
-
Field Details
-
INSTANCE
The only instance of a NIFTIFileFilter.
-
-
Method Details
-
getDescription
Returns "Analyze Images".- Specified by:
getDescription
in classFileFilter
- Returns:
- the description String "Analyze Images".
-
accept
Tests whether the given file probably represents an Analyze header file. Tests whether the file name end with ".hdr" or ".HDR". Also passes directories to allow navigation while looking for Analyze images.- Specified by:
accept
in classFileFilter
- Parameters:
file
- the file to test.- Returns:
- true if the supplied file is probably an Analyze header file or a directory. Returns false otherwise.
-