Class VOIVectorEvent
java.lang.Object
java.util.EventObject
gov.nih.mipav.model.structures.event.VOIVectorEvent
- All Implemented Interfaces:
Serializable
An event from a VOIVector. Registers the VOIVector as the event source and, if needed, the VOI that changed within
the VOIVector.
- Version:
- Aug 2002
- Author:
- David Parsons
$Logfile: /mipav/src/gov/nih/mipav/model/structures/EVENT/VOIVectorEvent.java $ $Revision: 1 $ $Date: 9/04/02 3:20p $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) VOIholds reference because referring to a VOI held by the ViewVOIVector would cause all kinds of memory clean-up concerns. may be null.private static final longUse serialVersionUID for interoperability.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionVOIVectorEvent(ViewVOIVector eventSource) creates an event with no VOI as reference.VOIVectorEvent(ViewVOIVector eventSource, VOI changedVOI) creates an event using the supplied VOI as reference. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
mostRecentUpdate
VOI mostRecentUpdateholds reference because referring to a VOI held by the ViewVOIVector would cause all kinds of memory clean-up concerns. may be null.
-
-
Constructor Details
-
VOIVectorEvent
creates an event with no VOI as reference.- Parameters:
eventSource- DOCUMENT ME!
-
VOIVectorEvent
creates an event using the supplied VOI as reference.- Parameters:
eventSource- DOCUMENT ME!changedVOI- DOCUMENT ME!
-
-
Method Details
-
finalize
public void finalize()cleanup. Sets the reference VOI to null, to prevent memory errors when the VOI itself is through. -
getState
public boolean getState()if the VOIVector were to have state, this would return it. currently returnstrue- Returns:
- DOCUMENT ME!
-
getVOI
returns the reference VOI. May benull- Returns:
- DOCUMENT ME!
-