Class JPanelStatisticsList

All Implemented Interfaces:
VOIStatisticList, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class JPanelStatisticsList extends JPanelChecklist implements VOIStatisticList
Custom panel for placing statistics in a selectable checklist panel.

$Logfile: /mipav/src/gov/nih/mipav/view/JPanelStatisticsList.java $ $Revision: 11 $ $Date: 12/15/05 5:06p $

See Also:
  • Field Details

    • serialVersionUID

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

      private boolean singleSlice
      Whether this list is dealing with lists of 2D contours.
    • openContour

      private boolean openContour
      Whether this list is dealing with open contours.
    • byContour

      private boolean byContour
      true if by contour or by slice and contour and show Totals is not selected
  • Constructor Details

    • JPanelStatisticsList

      public JPanelStatisticsList()
      constructor to build a panel allowing user to find which tags are available to anonymize.

      by defualt, sets all checkboxes to enabled. To set the checkboxes to image-specific enabled, set the slice count.

      See Also:
  • Method Details

    • makeCheckboxLabels

      public String[] makeCheckboxLabels()
      Creates the list of labels to use in the checkboxes.
      Specified by:
      makeCheckboxLabels in class JPanelChecklist
      Returns:
      DOCUMENT ME!
    • getCheckboxLabels

      public static String[] getCheckboxLabels()
    • setCheckBoxesDisabled

      public void setCheckBoxesDisabled()
      DOCUMENT ME!
    • setCheckBoxesEnabled

      public void setCheckBoxesEnabled()
      sets the enabled status of the checkboxes, after first finding the visible ones (ie., setting the visible status of them), by using the super-class' implementation of setCheckBoxesEnabled.
      Overrides:
      setCheckBoxesEnabled in class JPanelChecklist
      See Also:
    • setSliceCount

      public void setSliceCount(int sliceCount)
      Controls how many slices are being used for statistics calculations. Setting the sliceCount = 1 allows only calculations that are valid for 2D VOIs to be selected in the statistics list.
      Parameters:
      sliceCount - The number of slices that are used for statistics calculations.
    • isOpenContour

      public void isOpenContour(boolean openContour)
      Controls whether non-closed contours are being used for statistics calculations. If openContour = true, then several statistics will be disabled.
      Parameters:
      openContour - whether non-closed contours are being used for statistics calculations
    • setByContour

      public void setByContour(boolean byContour)
    • setListLength

      protected void setListLength()
      DOCUMENT ME!
      Specified by:
      setListLength in class JPanelChecklist
    • findVisible

      private void findVisible()
      only mark a VOI property to be visible for certain kinds of images. Namely, 2D images will not have VOIs with volume regions, and since the eccentricity and principal axis calculations are only valid for 2D regions, turn these options off for 3D images. (this is not altogether correct, but will suffice).