gishur.gui2.event
Class DrawEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--gishur.core.event.GishurEvent
                    |
                    +--gishur.gui2.event.DrawEvent
All Implemented Interfaces:
java.io.Serializable

public class DrawEvent
extends GishurEvent

Event class for events generated by DrawAtoms and subclasses.

Version:
1.0
Author:
Thomas Wolf
See Also:
DrawAtom, Serialized Form

Field Summary
static int ACTIVATE
          ID: DisplayObject became active
static int ACTIVATE_ELEMENT
          ID: an element of a DisplayObject became active
static int ACTIVATION_EVENT_MASK
          The event mask for activation events (ACTIVATE, ACTIVATE_ELEMENT,DEACTIVATE)
static int CONNECTION_EVENT_MASK
          The event mask for connection events (INSERT,REMOVE)
static int DEACTIVATE
          ID: DisplayObject became inactive
static int DESELECT
          ID: DisplayObject was deselected
static int DIRTY
          ID: DrawAtom became dirty
static int DIRTY_EVENT_MASK
          The event mask for dirty events (DIRTY)
static int DISABLE
          ID: InputHandler was disabled
static int DRAW_EVENT_MASK
          Event Mask for all DrawEvents.
static int ENABLE
          ID: InputHandler was enabled
static int ENABLE_EVENT_MASK
          The event mask for enable/disable events (ENABLE,DISABLE)
static int HIDE
          ID: DrawAtom was hidden
static int INSERT
          ID: DrawAtom was inserted in hierachy
static int INTERNAL_EVENTS_MASK
          Event Mask for internal events.
static int MEMBER_NEEDS_RECALC
          ID: a member of the DrawAtom needs to be recalulated
static int MEMBER_NEEDS_REPAINT
          ID: a member of the DrawAtom needs to be repainted
static int NEEDS_RECALC
          ID: DrawAtom needs to be recalulated
static int NEEDS_REPAINT
          ID: DrawAtom needs to be repainted
static int RECALC
          ID: DrawAtom has recalculated
static int RECALC_EVENT_MASK
          The event mask for recalculation events (RECALC)
static int REMOVE
          ID: DrawAtom will be removed from hierachy
static int SELECT
          ID: DisplayObject was selected
static int SELECTION_EVENT_MASK
          The event mask for selection events (SELECT,DESELECT)
static int SHOW
          ID: DrawAtom showed up
static int VISIBILITY_EVENT_MASK
          The event mask for visibility events (SHOW,HIDE)
 
Fields inherited from class gishur.core.event.GishurEvent
AWT_ACTION_EVENT_MASK, AWT_ADJUSTMENT_EVENT_MASK, AWT_COMPONENT_EVENT_MASK, AWT_CONTAINER_EVENT_MASK, AWT_FOCUS_EVENT_MASK, AWT_ITEM_EVENT_MASK, AWT_KEY_EVENT_MASK, AWT_MOUSE_EVENT_MASK, AWT_MOUSE_MOTION_EVENT_MASK, AWT_TEXT_EVENT_MASK, AWT_WINDOW_EVENT_MASK, GISHUR_EVENT_MASK, GISHUR_ID_MASK, MAX_EVENT_TYPES, MIN_GISHUR_MASK
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DrawEvent(DrawAtom source, int id)
          Constructs a DrawEvent with the given source DrawAtom and ID.
 
Method Summary
 long getWhen()
          Returns the timestamp of when this event occurred.
static java.lang.String idToString(int id)
          Returns a string representation of the given DrawEvent id.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class gishur.core.event.GishurEvent
isMaskedBy
 
Methods inherited from class java.awt.AWTEvent
consume, finalize, getID, isConsumed, paramString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONNECTION_EVENT_MASK

public static final int CONNECTION_EVENT_MASK
The event mask for connection events (INSERT,REMOVE)

RECALC_EVENT_MASK

public static final int RECALC_EVENT_MASK
The event mask for recalculation events (RECALC)

DIRTY_EVENT_MASK

public static final int DIRTY_EVENT_MASK
The event mask for dirty events (DIRTY)

VISIBILITY_EVENT_MASK

public static final int VISIBILITY_EVENT_MASK
The event mask for visibility events (SHOW,HIDE)

SELECTION_EVENT_MASK

public static final int SELECTION_EVENT_MASK
The event mask for selection events (SELECT,DESELECT)

ACTIVATION_EVENT_MASK

public static final int ACTIVATION_EVENT_MASK
The event mask for activation events (ACTIVATE, ACTIVATE_ELEMENT,DEACTIVATE)

ENABLE_EVENT_MASK

public static final int ENABLE_EVENT_MASK
The event mask for enable/disable events (ENABLE,DISABLE)

DRAW_EVENT_MASK

public static final int DRAW_EVENT_MASK
Event Mask for all DrawEvents.

INTERNAL_EVENTS_MASK

public static final int INTERNAL_EVENTS_MASK
Event Mask for internal events.

INSERT

public static final int INSERT
ID: DrawAtom was inserted in hierachy

REMOVE

public static final int REMOVE
ID: DrawAtom will be removed from hierachy

RECALC

public static final int RECALC
ID: DrawAtom has recalculated

DIRTY

public static final int DIRTY
ID: DrawAtom became dirty

NEEDS_RECALC

public static final int NEEDS_RECALC
ID: DrawAtom needs to be recalulated

NEEDS_REPAINT

public static final int NEEDS_REPAINT
ID: DrawAtom needs to be repainted

MEMBER_NEEDS_RECALC

public static final int MEMBER_NEEDS_RECALC
ID: a member of the DrawAtom needs to be recalulated

MEMBER_NEEDS_REPAINT

public static final int MEMBER_NEEDS_REPAINT
ID: a member of the DrawAtom needs to be repainted

SHOW

public static final int SHOW
ID: DrawAtom showed up

HIDE

public static final int HIDE
ID: DrawAtom was hidden

ACTIVATE

public static final int ACTIVATE
ID: DisplayObject became active

ACTIVATE_ELEMENT

public static final int ACTIVATE_ELEMENT
ID: an element of a DisplayObject became active

DEACTIVATE

public static final int DEACTIVATE
ID: DisplayObject became inactive

SELECT

public static final int SELECT
ID: DisplayObject was selected

DESELECT

public static final int DESELECT
ID: DisplayObject was deselected

ENABLE

public static final int ENABLE
ID: InputHandler was enabled

DISABLE

public static final int DISABLE
ID: InputHandler was disabled
Constructor Detail

DrawEvent

public DrawEvent(DrawAtom source,
                 int id)
Constructs a DrawEvent with the given source DrawAtom and ID.
Parameters:
source - source object
id - ID
Method Detail

getWhen

public long getWhen()
Returns the timestamp of when this event occurred.
Returns:
the timestamp of when this event occurred.

toString

public java.lang.String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object.
Overrides:
toString in class java.awt.AWTEvent
Returns:
a string representation of the object.

idToString

public static java.lang.String idToString(int id)
Returns a string representation of the given DrawEvent id.