Class ROIStatsFileChooser

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JFileChooser
com.xinapse.util.FileChooser
com.xinapse.util.FileChooser.SaveChooser
com.xinapse.multisliceimage.roi.ROIStatsFileChooser
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
ROIIntensitiesFileChooser

public class ROIStatsFileChooser extends com.xinapse.util.FileChooser.SaveChooser
A JFileChooser for choosing region of interest statistics files (files with extension ".txt") into which ROI stats will be written.
See Also:
  • Constructor Details

    • ROIStatsFileChooser

      public ROIStatsFileChooser(String fileOrURLName)
      Creates an ROIStatsFileChooser suitable for selecting a stats file for into which ROI stats will be written, with the directory set to the supplied directory (if a directory) or the parent directory containing the file (if a regular file).
      Parameters:
      fileOrURLName - the file, directory or File URL that will be seen on showing the TextFileChooser.
  • Method Details

    • setSelectedFile

      public void setSelectedFile(String fileOrURLName) throws NullPointerException
      Sets the selected file. If the file's parent directory is not the current directory, changes the current directory to be the file's parent directory.
      Overrides:
      setSelectedFile in class com.xinapse.util.FileChooser
      Parameters:
      fileOrURLName - the selected file (or File URL) name.
      Throws:
      NullPointerException - if fileOrURLName is null.