Package com.xinapse.multisliceimage.roi
Class ROIFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
com.xinapse.multisliceimage.roi.ROIFileFilter
A FileFilter for region of interest files.
The accept() method returns true for files ending in ".roi" and for directories.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the given file is a region of interest file.Returns "Region of Interest Files".
-
Field Details
-
FILE_EXTENSION
The extension for ROI files ("roi").- See Also:
-
-
Constructor Details
-
ROIFileFilter
public ROIFileFilter()Constructor for ROIFileFilter.
-
-
Method Details
-
getDescription
Returns "Region of Interest Files".- Specified by:
getDescription
in classFileFilter
- Returns:
- the description String "Region of Interest Files".
-
accept
Tests whether the given file is a region of interest file. Also passes directories to allow navigation while looking for ROI files.- Specified by:
accept
in classFileFilter
- Parameters:
f
- the file to test.- Returns:
- true if the supplied file is an roi file (ends with ".roi"), or a directory; returns false otherwise. The test is case-insensitive.
-