Package gov.nih.mipav.view.dialogs
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddedCurve(VOIEvent added) We are not interested in adding Curves, so this method is empty.voidvoidremovedCurve(VOIEvent added) We are not interested in removing Curves, so this method is empty.voidselectedVOI(VOIEvent selection) Handles the VOI being selected. -- a state-change.voidGoes through the list selection event's JList source to find selected VOI list items.
-
Constructor Details
-
VOIHighlighter
public VOIHighlighter()
-
-
Method Details
-
addedCurve
We are not interested in adding Curves, so this method is empty.- Specified by:
addedCurvein interfaceVOIListener- Parameters:
added- DOCUMENT ME!
-
removedCurve
We are not interested in removing Curves, so this method is empty.- Specified by:
removedCurvein interfaceVOIListener- Parameters:
added- DOCUMENT ME!
-
colorChanged
- Specified by:
colorChangedin interfaceVOIListener
-
selectedVOI
Handles the VOI being selected. -- a state-change.- Specified by:
selectedVOIin interfaceVOIListener- Parameters:
selection- DOCUMENT ME!
-
valueChanged
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:
valueChangedin interfaceListSelectionListener- Parameters:
lse- DOCUMENT ME!
-