Class ROIPreferencesDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ROIPreferencesDialog extends JDialog
A javax.swing.JDialog used to set the user Preferences related to ROIs. Preferences include the colours with which ROIs will be drawn, the default pen size for paint/erase operations, and the default setting for the mask action.
See Also:
  • Constructor Details

    • ROIPreferencesDialog

      public ROIPreferencesDialog(JDialog owner, com.xinapse.displayer.ImageDisplayer displayer)
      Created a new ROIPreferencesDialog with the specified owner.
      Parameters:
      owner - the parent component of the dialog. The ROIPreferencesDialog is centred on the owner when the setVisible() method is invoked.
      displayer - the ImageDisplayer that will be refreshed when the user applied or saves the Preferences.
  • Method Details

    • getPreferredAlwaysOnTop

      public static boolean getPreferredAlwaysOnTop()
      Returns the setting of whether to the ROI toolkit should always be on top of other windows, as set in the user preferences.
      Returns:
      whether to the ROI toolkit should always be on top of other windows.
    • getPreferredMinimise

      public static boolean getPreferredMinimise()
      Returns the setting of whether to the ROI toolkit should be minimised on startup, in the user preferences.
      Returns:
      whether to the ROI toolkit should be minimised startup.
    • getPreferredShowStatistics

      public static boolean getPreferredShowStatistics()
      Returns the setting of whether to show ROI statistics on startup, in the user preferences.
      Returns:
      whether to show ROI statistics on startup.
    • getPreferredSnapCentre

      public static boolean getPreferredSnapCentre()
      Returns the setting of snap to the centre of pixels set in the user preferences.
      Returns:
      whether to snap to the centre of pixels on startup.
    • getPreferredShowExtendedStats

      public static boolean getPreferredShowExtendedStats()
      Returns the setting of show extended statistics set in the user preferences.
      Returns:
      whether to show extended statistics on startup.
    • getPreferredMergeContours

      public static boolean getPreferredMergeContours()
      Returns the setting of whether contours should be merged after 3-D propagagtion as set in the user preferences.
      Returns:
      the setting of whether contours should be merged after 3-D propagagtion.
    • getPreferredMaxUndos

      public static int getPreferredMaxUndos()
      Returns the maximum number of undo operations set in the user preferences.
      Returns:
      the maximum number of undo operations set in the user preferences.
    • getPreferredErodeDilateFraction

      public static float getPreferredErodeDilateFraction()
      Returns the erode/dilate distance as a fraction of the image pixel size as set in the user preferences.
      Returns:
      the erode/dilate distance as a fraction of the image pixel size.
    • getPreferredSaveFolderFollowsImage

      public static boolean getPreferredSaveFolderFollowsImage()
      Returns the setting of whether to the folder for saving ROIs follows the image as set in the user preferences.
      Returns:
      true if the folder for saving ROIs should be the same as the current image; or false if the folder should remain unchanged between changes of image.