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