Package com.xinapse.multisliceimage.roi
Class ImageJROIFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
com.xinapse.multisliceimage.roi.ImageJROIFileFilter
A FileFilter for ImageJ region of interest files.
The accept() method returns true for files ending in ".roi" or ".zip" and for directories.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests whether the given file is possibly an ImageJ region of interest file.Returns "ImageJ Region of Interest Files".
-
Constructor Details
-
ImageJROIFileFilter
public ImageJROIFileFilter()Constructor for ImageJROIFileFilter.
-
-
Method Details
-
getDescription
Returns "ImageJ Region of Interest Files".- Specified by:
getDescription
in classFileFilter
- Returns:
- the description String "ImageJ Region of Interest Files".
-
accept
Tests whether the given file is possibly an ImageJ 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 ".zip"), or a directory; returns false otherwise. The test is case-insensitive.
-