Class JDialogVOIStatistics.JPanelStatisticsOptions

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.dialogs.JDialogVOIStatistics.JPanelStatisticsOptions
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Enclosing class:
JDialogVOIStatistics

public class JDialogVOIStatistics.JPanelStatisticsOptions extends JPanel
Panel holding all statistics options and allowing the user-selection. This panel has a border labelled, "Statistics Options" and contains a set of radio buttons for selecting which properties about a VOI are to be reported: by contour and slice, by slice, or by total VOI; an option exists to display all totals, as well. There is also an exclusion selector panel. The panel only permits programmatic setting of slice-only calculation, but there is a retrieval facility available for other options.
See Also:
  • Field Details

    • serialVersionUID

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

      JRadioButton byContour
      A radio button to select calculation by VOI contour.
    • byContourSlice

      JRadioButton byContourSlice
      A radio button to select calculation by VOI contour.
    • bySlice

      JRadioButton bySlice
      A radio button to select calculation by VOI slice.
    • byTotalVOI

      JRadioButton byTotalVOI
      A radio button to select calculation by total VOI.
    • excluder

      The Exclusion selector.
    • forceDecimal

      JCheckBox forceDecimal
      DOCUMENT ME!
    • precisionBox

      JComboBox precisionBox
      User can choose the precision to display.
    • showTotals

      JCheckBox showTotals
      A check box to opt for VOI totals.
    • activeVolumeButton

      JRadioButton activeVolumeButton
      A radio button to select calculation only for the active volume
    • allVolumesButton

      JRadioButton allVolumesButton
      A radio button to select calculation for all volumes
  • Constructor Details

    • JPanelStatisticsOptions

      public JPanelStatisticsOptions()
      Creates a default view of the panel, including all options displayed. The option to calculate for the total VOI only is selected.
  • Method Details

    • doForcePrecision

      public boolean doForcePrecision()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • getExcluder

      public JPanelPixelExclusionSelector getExcluder()
      Returns:
      the panel for listing pixel exclusion options
    • getPrecision

      public int getPrecision()
      DOCUMENT ME!
      Returns:
      DOCUMENT ME!
    • getProcessType

      public int getProcessType()
      Gets the output calculation type.
      Returns:
      type VOI, Contour, Slice
    • getVolumeType

      public void getVolumeType()
    • isByContour

      public boolean isByContour()
      Method to retrieve the selected value for contour-only calculation.
      Returns:
      DOCUMENT ME!
    • isBySlice

      public boolean isBySlice()
      Method to retrieve the selected value for slice-only calculation.
      Returns:
      DOCUMENT ME!
    • isByVOI

      public boolean isByVOI()
      Method to retrieve the selected value for VOI-only calculation.
      Returns:
      true VOI only calculation false otherwise.
    • isShowTotals

      public boolean isShowTotals()
      Method to retrieve the selected value for totals calculation.
      Returns:
      DOCUMENT ME!
    • setBySliceEnabled

      public void setBySliceEnabled(boolean flag)
      Method to set the selected value for slice-only calculation.
      Parameters:
      flag - DOCUMENT ME!
    • setProcessType

      public void setProcessType(int type)
      Set the output calculation by type.
      Parameters:
      type - VOI, Contour or Slice
    • setShowTotals

      public void setShowTotals(boolean flag)
      Set the showTotal calculation flag.
      Parameters:
      flag - true show total voxels false otherwise