Class JDialogVOIStatistics.VOIHighlighter

java.lang.Object
gov.nih.mipav.view.dialogs.JDialogVOIStatistics.VOIHighlighter
All Implemented Interfaces:
VOIListener, EventListener, ListSelectionListener
Enclosing class:
JDialogVOIStatistics

public class JDialogVOIStatistics.VOIHighlighter extends Object implements ListSelectionListener, VOIListener
An active listener for VOIEvents and ListSelectionEvents, this class will ensure the selected state of the VOI and its name in a dialog's list is the same. It provides that when the name of the VOI is selected in a dialog's list, the VOI itself is selected inside the image. Likewise, a selected VOI will highlight the name in the list of the appropriate dialog.
  • Constructor Details

    • VOIHighlighter

      public VOIHighlighter()
  • Method Details

    • addedCurve

      public void addedCurve(VOIEvent added)
      We are not interested in adding Curves, so this method is empty.
      Specified by:
      addedCurve in interface VOIListener
      Parameters:
      added - DOCUMENT ME!
    • removedCurve

      public void removedCurve(VOIEvent added)
      We are not interested in removing Curves, so this method is empty.
      Specified by:
      removedCurve in interface VOIListener
      Parameters:
      added - DOCUMENT ME!
    • colorChanged

      public void colorChanged(Color c)
      Specified by:
      colorChanged in interface VOIListener
    • selectedVOI

      public void selectedVOI(VOIEvent selection)
      Handles the VOI being selected. -- a state-change.
      Specified by:
      selectedVOI in interface VOIListener
      Parameters:
      selection - DOCUMENT ME!
    • valueChanged

      public void valueChanged(ListSelectionEvent lse)
      Goes through the list selection event's JList source to find selected VOI list items. The selected VOIs are then instructed to be "active". Any other VOIs in the list are set to be not active.
      Specified by:
      valueChanged in interface ListSelectionListener
      Parameters:
      lse - DOCUMENT ME!