org.argouml.application.events
Class ArgoEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.argouml.application.events.ArgoEvent
All Implemented Interfaces:
ArgoEventTypes, java.io.Serializable
Direct Known Subclasses:
ArgoModuleEvent, ArgoNotationEvent

public abstract class ArgoEvent
extends java.util.EventObject
implements ArgoEventTypes

The root class from which all event state objects within Argo are derived. All ArgoEvents are constructed with a reference to the object, the "source", that is logically deemed to be the object upon which the Event in question initially occurred upon.

See Also:
Serialized Form

Field Summary
protected  int _eventType
           
 
Fields inherited from class java.util.EventObject
source
 
Fields inherited from interface org.argouml.application.events.ArgoEventTypes
ANY_EVENT, ANY_MODULE_EVENT, ANY_NOTATION_EVENT, ARGO_EVENT_END, MODULE_DISABLED, MODULE_ENABLED, MODULE_LOADED, MODULE_UNLOADED, NOTATION_ADDED, NOTATION_CHANGED, NOTATION_PROVIDER_ADDED, NOTATION_PROVIDER_REMOVED, NOTATION_REMOVED
 
Constructor Summary
ArgoEvent(int eventType, java.lang.Object src)
           
 
Method Summary
 int getEventEndRange()
          Indicates the end of the range for notation events.
 int getEventStartRange()
          Indicates the start of the range for any events.
 int getEventType()
           
 java.lang.String toString()
          Provides formatted description of the event
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_eventType

protected int _eventType
Constructor Detail

ArgoEvent

public ArgoEvent(int eventType,
                 java.lang.Object src)
Method Detail

getEventType

public int getEventType()

getEventStartRange

public int getEventStartRange()
Indicates the start of the range for any events.

Returns:
the first id reserved for events.

getEventEndRange

public int getEventEndRange()
Indicates the end of the range for notation events.

Returns:
the last id reserved for events.

toString

public java.lang.String toString()
Provides formatted description of the event

Overrides:
toString in class java.util.EventObject
Returns:
the formatted information.


ArgoUML © 1996-2004 (20040306)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook