Class VOIVectorEvent
- java.lang.Object
-
- java.util.EventObject
-
- gov.nih.mipav.model.structures.event.VOIVectorEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class VOIVectorEvent extends java.util.EventObjectAn 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) VOImostRecentUpdateholds reference because referring to a VOI held by the ViewVOIVector would cause all kinds of memory clean-up concerns. may be null.private static longserialVersionUIDUse serialVersionUID for interoperability.
-
Constructor Summary
Constructors Constructor Description VOIVectorEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinalize()cleanup.booleangetState()if the VOIVector were to have state, this would return it. currently returnstrueVOIgetVOI()returns the reference VOI.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
mostRecentUpdate
VOI mostRecentUpdate
holds reference because referring to a VOI held by the ViewVOIVector would cause all kinds of memory clean-up concerns. may be null.
-
-
Constructor Detail
-
VOIVectorEvent
public VOIVectorEvent(ViewVOIVector eventSource)
creates an event with no VOI as reference.- Parameters:
eventSource- DOCUMENT ME!
-
VOIVectorEvent
public VOIVectorEvent(ViewVOIVector eventSource, VOI changedVOI)
creates an event using the supplied VOI as reference.- Parameters:
eventSource- DOCUMENT ME!changedVOI- DOCUMENT ME!
-
-
Method Detail
-
finalize
public void finalize()
cleanup. Sets the reference VOI to null, to prevent memory errors when the VOI itself is through.- Overrides:
finalizein classjava.lang.Object
-
getState
public boolean getState()
if the VOIVector were to have state, this would return it. currently returnstrue- Returns:
- DOCUMENT ME!
-
getVOI
public VOI getVOI()
returns the reference VOI. May benull- Returns:
- DOCUMENT ME!
-
-