Class ImageJROIFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
com.xinapse.multisliceimage.roi.ImageJROIFileFilter

public class ImageJROIFileFilter extends FileFilter
A FileFilter for ImageJ region of interest files. The accept() method returns true for files ending in ".roi" or ".zip" and for directories.
  • Constructor Details

    • ImageJROIFileFilter

      public ImageJROIFileFilter()
      Constructor for ImageJROIFileFilter.
  • Method Details

    • getDescription

      public String getDescription()
      Returns "ImageJ Region of Interest Files".
      Specified by:
      getDescription in class FileFilter
      Returns:
      the description String "ImageJ Region of Interest Files".
    • accept

      public boolean accept(File f)
      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 class FileFilter
      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.