Class JDialogVOIHausdorffDistance.VOIHighlighter

  • All Implemented Interfaces:
    VOIListener, java.util.EventListener, javax.swing.event.ListSelectionListener
    Enclosing class:
    JDialogVOIHausdorffDistance

    public class JDialogVOIHausdorffDistance.VOIHighlighter
    extends java.lang.Object
    implements javax.swing.event.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 Summary

      Constructors 
      Constructor Description
      VOIHighlighter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addedCurve​(VOIEvent added)
      We are not interested in adding Curves, so this method is empty.
      void colorChanged​(java.awt.Color c)  
      void removedCurve​(VOIEvent added)
      We are not interested in removing Curves, so this method is empty.
      void selectedVOI​(VOIEvent selection)
      Handles the VOI being selected. -- a state-change.
      void valueChanged​(javax.swing.event.ListSelectionEvent lse)
      Goes through the list selection event's JList source to find selected VOI list items.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VOIHighlighter

        public VOIHighlighter()
    • Method Detail

      • 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​(java.awt.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​(javax.swing.event.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 javax.swing.event.ListSelectionListener
        Parameters:
        lse - DOCUMENT ME!