Class VOIVectorEvent

java.lang.Object
java.util.EventObject
gov.nih.mipav.model.structures.event.VOIVectorEvent
All Implemented Interfaces:
Serializable

public class VOIVectorEvent extends EventObject
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • 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 Details

    • 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 Details

    • finalize

      public void finalize()
      cleanup. Sets the reference VOI to null, to prevent memory errors when the VOI itself is through.
      Overrides:
      finalize in class Object
    • getState

      public boolean getState()
      if the VOIVector were to have state, this would return it. currently returns true
      Returns:
      DOCUMENT ME!
    • getVOI

      public VOI getVOI()
      returns the reference VOI. May be null
      Returns:
      DOCUMENT ME!