tdg.event
Class TDGEvent


java.lang.Object

  |

  +--java.util.EventObject

        |

        +--tdg.event.TDGEvent


public class TDGEvent
extends java.util.EventObject

The root event class for all perspective-level events.

See Also:
TDGListener, Serialized Form

Field Summary
static int TDG_3DPRESET_CHANGED
          Notify Listeners that Preset has changed.
static int TDG_APPLY_COLOR
          Apply color change to current selection, if any.
static int TDG_CALC_PERFORMED
          Notify Listeners that CALC has been performed.
static int TDG_EDITOR_STATE_TOGGLE
          Notify Listeners that Editing State has been toggled.
static int TDG_FIRST_EVENT_ID
          The lowest event ID allowed in the Perspective JavaCHART world.
static int TDG_GRAPHTYPE_CHANGED
          Notify Listeners that GraphType has changed.
static int TDG_KEY_PRESSED
          Notify Listeners that Key Pressed.
static int TDG_KEY_RELEASED
          Notify Listeners that Key Released.
static int TDG_KEY_TYPED
          Notify Listeners that Key Typed.
static int TDG_LAST_EVENT_ID
          The highest event ID allowed in the Perspective JavaCHART world.
static int TDG_MOUSE_CLICKED
          Notify Listeners that Mouse Clicked.
static int TDG_MOUSE_DRAGGED
          Notify Listeners that Mouse Dragged.
static int TDG_MOUSE_ENTERED
          Notify Listeners that Mouse Entered.
static int TDG_MOUSE_EXITED
          Notify Listeners that Mouse Exited.
static int TDG_MOUSE_MOVED
          Notify Listeners that Mouse Moved.
static int TDG_MOUSE_PRESSED
          Notify Listeners that Mouse Pressed.
static int TDG_MOUSE_RELEASED
          Notify Listeners that Mouse Released.
static int TDG_SELECTION_CHANGED
          Perspective selection changed.
 
Constructor Summary
TDGEvent(java.lang.Object source, int id, java.lang.Object dataObject)
          Constructs a TDGEvent object with the specified source Perspective and type.
 
Method Summary
 java.lang.Object getDataObject()
          Returns the dataObject associated with this event.
 int getID()
          Returns the id associated with this event.
 java.lang.Object getSource()
          Returns the Source where this event originated.
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TDG_FIRST_EVENT_ID


public static final int TDG_FIRST_EVENT_ID
The lowest event ID allowed in the Perspective JavaCHART world.

TDG_LAST_EVENT_ID


public static final int TDG_LAST_EVENT_ID
The highest event ID allowed in the Perspective JavaCHART world.

TDG_SELECTION_CHANGED


public static final int TDG_SELECTION_CHANGED
Perspective selection changed.

TDG_APPLY_COLOR


public static final int TDG_APPLY_COLOR
Apply color change to current selection, if any.

TDG_3DPRESET_CHANGED


public static final int TDG_3DPRESET_CHANGED
Notify Listeners that Preset has changed.

TDG_GRAPHTYPE_CHANGED


public static final int TDG_GRAPHTYPE_CHANGED
Notify Listeners that GraphType has changed.

TDG_CALC_PERFORMED


public static final int TDG_CALC_PERFORMED
Notify Listeners that CALC has been performed.

TDG_EDITOR_STATE_TOGGLE


public static final int TDG_EDITOR_STATE_TOGGLE
Notify Listeners that Editing State has been toggled.

TDG_MOUSE_PRESSED


public static final int TDG_MOUSE_PRESSED
Notify Listeners that Mouse Pressed.

TDG_MOUSE_DRAGGED


public static final int TDG_MOUSE_DRAGGED
Notify Listeners that Mouse Dragged.

TDG_MOUSE_RELEASED


public static final int TDG_MOUSE_RELEASED
Notify Listeners that Mouse Released.

TDG_MOUSE_MOVED


public static final int TDG_MOUSE_MOVED
Notify Listeners that Mouse Moved.

TDG_KEY_PRESSED


public static final int TDG_KEY_PRESSED
Notify Listeners that Key Pressed.

TDG_KEY_RELEASED


public static final int TDG_KEY_RELEASED
Notify Listeners that Key Released.

TDG_KEY_TYPED


public static final int TDG_KEY_TYPED
Notify Listeners that Key Typed.

TDG_MOUSE_EXITED


public static final int TDG_MOUSE_EXITED
Notify Listeners that Mouse Exited.

TDG_MOUSE_ENTERED


public static final int TDG_MOUSE_ENTERED
Notify Listeners that Mouse Entered.

TDG_MOUSE_CLICKED


public static final int TDG_MOUSE_CLICKED
Notify Listeners that Mouse Clicked.
Constructor Detail

TDGEvent


public TDGEvent(java.lang.Object source,
                int id,
                java.lang.Object dataObject)
Constructs a TDGEvent object with the specified source Perspective and type.
Parameters:
source - the Perspective where the event originated
id - the event type
Method Detail

getSource


public java.lang.Object getSource()
Returns the Source where this event originated.
Overrides:
getSource in class java.util.EventObject

getID


public int getID()
Returns the id associated with this event.

getDataObject


public java.lang.Object getDataObject()
Returns the dataObject associated with this event.