Class JPanelAlgorithmOutputOptions

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.components.JPanelAlgorithmOutputOptions
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelAlgorithmOutputOptions extends JPanel
This panel encapsulates radio buttons which allow the user to indicate whether a new image should be generated by the algorithm dialog parent of the panel and whether the whole image or a VOI region should be processed.
Author:
mccreedy
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • newImageRadio

      private JRadioButton newImageRadio
      DOCUMENT ME!
    • replaceImageRadio

      private JRadioButton replaceImageRadio
      DOCUMENT ME!
    • srcImage

      private ModelImage srcImage
      DOCUMENT ME!
    • voiRegionsRadio

      private JRadioButton voiRegionsRadio
      DOCUMENT ME!
    • wholeImageRadio

      private JRadioButton wholeImageRadio
      DOCUMENT ME!
  • Constructor Details

    • JPanelAlgorithmOutputOptions

      public JPanelAlgorithmOutputOptions(ModelImage img)
      Create the algorithm output options panel.
      Parameters:
      img - the input image which will be processed by the algorithm
  • Method Details

    • isOutputNewImageSet

      public boolean isOutputNewImageSet()
      Returns whether a new image should be produced by the dialog this panel is a part of.
      Returns:
      true if a new image should be created, false if the input image should be replaced
    • isProcessWholeImageSet

      public boolean isProcessWholeImageSet()
      Returns whether the whole image should be processed (as opposed to just VOI regions).
      Returns:
      true if the whole image should be processed, false if regions inside VOIs should be processed
    • setOutputNewImage

      public void setOutputNewImage(boolean flag)
      Changes whether a new image should be generated by the algorithm.
      Parameters:
      flag - true if a new image should be made, false otherwise
    • setOutputImageOptionsEnabled

      public void setOutputImageOptionsEnabled(boolean flag)
      Enables/disables the new/replace image output radio buttons.
      Parameters:
      flag - Whether to enable the new/replace image radio buttons.
    • setProcessWholeImage

      public void setProcessWholeImage(boolean flag)
      Changes whether a whole image should be processed (as opposed to just VOI regions).
      Parameters:
      flag - true if the whole image should be processed, false if just VOI regions
    • initGUI

      private void initGUI()
      Construct the panel's GUI.