org.argouml.application.events
Class ArgoEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.argouml.application.events.ArgoEvent
All Implemented Interfaces:
ArgoEventTypes, Serializable
Direct Known Subclasses:
ArgoModuleEvent, ArgoNotationEvent

public abstract class ArgoEvent
extends 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
private  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, LAST_MODULE_EVENT, LAST_NOTATION_EVENT, MODULE_DISABLED, MODULE_ENABLED, MODULE_LOADED, MODULE_UNLOADED, NOTATION_ADDED, NOTATION_CHANGED, NOTATION_PROVIDER_ADDED, NOTATION_PROVIDER_REMOVED, NOTATION_REMOVED
 
Constructor Summary
ArgoEvent(int eT, Object src)
          The constructor.
 
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()
           
 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

private int eventType
Constructor Detail

ArgoEvent

public ArgoEvent(int eT,
                 Object src)
The constructor.

Parameters:
eT - the event type
src - the sourc, that triggered the event
Method Detail

getEventType

public int getEventType()
Returns:
the event type

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 String toString()
Provides formatted description of the event.

Returns:
the formatted information.


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