org.apache.batik.gvt.event

Class GraphicsNodeInputEvent

public abstract class GraphicsNodeInputEvent extends GraphicsNodeEvent

The root event class for all graphics node-level input events.
Field Summary
static intALT_GRAPH_MASK
The alt-graph key modifier constant.
static intALT_MASK
The alt key modifier constant.
static intBUTTON1_MASK
The mouse button1 modifier constant.
static intBUTTON2_MASK
The mouse button2 modifier constant.
static intBUTTON3_MASK
The mouse button3 modifier constant.
static intCAPS_LOCK_MASK
The caps lock constant.
static intCTRL_MASK
The control key modifier constant.
static intKANA_LOCK_MASK
The kana lock constant.
static intMETA_MASK
The meta key modifier constant.
static intNUM_LOCK_MASK
The num lock constant.
static intSCROLL_LOCK_MASK
The scroll lock constant.
static intSHIFT_MASK
The shift key modifier constant.
Constructor Summary
protected GraphicsNodeInputEvent(GraphicsNode source, int id, long when, int modifiers, int lockState)
Constructs a new graphics node input event.
protected GraphicsNodeInputEvent(GraphicsNode source, InputEvent evt, int lockState)
Constructs a new graphics node input event from an AWT InputEvent.
Method Summary
intgetLockState()
Returns the lock state flags for this event.
intgetModifiers()
Returns the modifiers flag for this event.
longgetWhen()
Returns the timestamp of when this event occurred.
booleanisAltDown()
Returns whether or not the Alt modifier is down on this event.
booleanisAltGraphDown()
Returns whether or not the Alt-Graph modifier is down on this event.
booleanisControlDown()
Returns whether or not the Control modifier is down on this event.
booleanisMetaDown()
Returns whether or not the Meta modifier is down on this event.
booleanisShiftDown()
Returns whether or not the Shift modifier is down on this event.

Field Detail

ALT_GRAPH_MASK

public static final int ALT_GRAPH_MASK
The alt-graph key modifier constant.

ALT_MASK

public static final int ALT_MASK
The alt key modifier constant.

BUTTON1_MASK

public static final int BUTTON1_MASK
The mouse button1 modifier constant.

BUTTON2_MASK

public static final int BUTTON2_MASK
The mouse button2 modifier constant.

BUTTON3_MASK

public static final int BUTTON3_MASK
The mouse button3 modifier constant.

CAPS_LOCK_MASK

public static final int CAPS_LOCK_MASK
The caps lock constant.

CTRL_MASK

public static final int CTRL_MASK
The control key modifier constant.

KANA_LOCK_MASK

public static final int KANA_LOCK_MASK
The kana lock constant.

META_MASK

public static final int META_MASK
The meta key modifier constant.

NUM_LOCK_MASK

public static final int NUM_LOCK_MASK
The num lock constant.

SCROLL_LOCK_MASK

public static final int SCROLL_LOCK_MASK
The scroll lock constant.

SHIFT_MASK

public static final int SHIFT_MASK
The shift key modifier constant.

Constructor Detail

GraphicsNodeInputEvent

protected GraphicsNodeInputEvent(GraphicsNode source, int id, long when, int modifiers, int lockState)
Constructs a new graphics node input event.

Parameters: source the graphics node where the event originated id the id of this event when the time the event occurred modifiers the modifier keys down while event occurred

GraphicsNodeInputEvent

protected GraphicsNodeInputEvent(GraphicsNode source, InputEvent evt, int lockState)
Constructs a new graphics node input event from an AWT InputEvent.

Parameters: source the graphics node where the event originated evt the AWT InputEvent triggering this event's creation

Method Detail

getLockState

public int getLockState()
Returns the lock state flags for this event.

getModifiers

public int getModifiers()
Returns the modifiers flag for this event.

getWhen

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

isAltDown

public boolean isAltDown()
Returns whether or not the Alt modifier is down on this event.

isAltGraphDown

public boolean isAltGraphDown()
Returns whether or not the Alt-Graph modifier is down on this event.

isControlDown

public boolean isControlDown()
Returns whether or not the Control modifier is down on this event.

isMetaDown

public boolean isMetaDown()
Returns whether or not the Meta modifier is down on this event.

isShiftDown

public boolean isShiftDown()
Returns whether or not the Shift modifier is down on this event.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.