|
|||||||||
| Home >> All >> org >> apache >> batik >> gvt >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.gvt.event
Class GraphicsNodeInputEvent

java.lang.Objectjava.util.EventObject
org.apache.batik.gvt.event.GraphicsNodeEvent
org.apache.batik.gvt.event.GraphicsNodeInputEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- GraphicsNodeKeyEvent, GraphicsNodeMouseEvent
- public abstract class GraphicsNodeInputEvent
- extends GraphicsNodeEvent
The root event class for all graphics node-level input events.
- Version:
- $Id: GraphicsNodeInputEvent.java,v 1.6 2005/02/22 09:13:02 cam Exp $
| Field Summary | |
static int |
ALT_GRAPH_MASK
The alt-graph key modifier constant. |
static int |
ALT_MASK
The alt key modifier constant. |
static int |
BUTTON1_MASK
The mouse button1 modifier constant. |
static int |
BUTTON2_MASK
The mouse button2 modifier constant. |
static int |
BUTTON3_MASK
The mouse button3 modifier constant. |
static int |
CTRL_MASK
The control key modifier constant. |
static int |
META_MASK
The meta key modifier constant. |
(package private) int |
modifiers
The state of the modifier key at the time the graphics node input event was fired. |
static int |
SHIFT_MASK
The shift key modifier constant. |
(package private) long |
when
The graphics node input events Time stamp. |
| Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent |
id |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
protected |
GraphicsNodeInputEvent(org.apache.batik.gvt.GraphicsNode source,
java.awt.event.InputEvent evt)
Constructs a new graphics node input event from an AWT InputEvent. |
protected |
GraphicsNodeInputEvent(org.apache.batik.gvt.GraphicsNode source,
int id,
long when,
int modifiers)
Constructs a new graphics node input event. |
| Method Summary | |
int |
getModifiers()
Returns the modifiers flag for this event. |
long |
getWhen()
Returns the timestamp of when this event occurred. |
boolean |
isAltDown()
Returns whether or not the Alt modifier is down on this event. |
boolean |
isAltGraphDown()
Returns whether or not the Alt-Graph modifier is down on this event. |
boolean |
isControlDown()
Returns whether or not the Control modifier is down on this event. |
boolean |
isMetaDown()
Returns whether or not the Meta modifier is down on this event. |
boolean |
isShiftDown()
Returns whether or not the Shift modifier is down on this event. |
| Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent |
consume, getGraphicsNode, getID, isConsumed |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
SHIFT_MASK
public static final int SHIFT_MASK
- The shift key modifier constant.
- See Also:
- Constant Field Values
CTRL_MASK
public static final int CTRL_MASK
- The control key modifier constant.
- See Also:
- Constant Field Values
META_MASK
public static final int META_MASK
- The meta key modifier constant.
- See Also:
- Constant Field Values
ALT_MASK
public static final int ALT_MASK
- The alt key modifier constant.
- See Also:
- Constant Field Values
ALT_GRAPH_MASK
public static final int ALT_GRAPH_MASK
- The alt-graph key modifier constant.
- See Also:
- Constant Field Values
BUTTON1_MASK
public static final int BUTTON1_MASK
- The mouse button1 modifier constant.
- See Also:
- Constant Field Values
BUTTON2_MASK
public static final int BUTTON2_MASK
- The mouse button2 modifier constant.
- See Also:
- Constant Field Values
BUTTON3_MASK
public static final int BUTTON3_MASK
- The mouse button3 modifier constant.
- See Also:
- Constant Field Values
when
long when
- The graphics node input events Time stamp. The time stamp is in
UTC format that indicates when the input event was
created.
modifiers
int modifiers
- The state of the modifier key at the time the graphics node
input event was fired.
| Constructor Detail |
GraphicsNodeInputEvent
protected GraphicsNodeInputEvent(org.apache.batik.gvt.GraphicsNode source, int id, long when, int modifiers)
- Constructs a new graphics node input event.
GraphicsNodeInputEvent
protected GraphicsNodeInputEvent(org.apache.batik.gvt.GraphicsNode source, java.awt.event.InputEvent evt)
- Constructs a new graphics node input event from an AWT InputEvent.
| Method Detail |
isShiftDown
public boolean isShiftDown()
- Returns whether or not the Shift 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.
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.
getWhen
public long getWhen()
- Returns the timestamp of when this event occurred.
getModifiers
public int getModifiers()
- Returns the modifiers flag for this event.
|
|||||||||
| Home >> All >> org >> apache >> batik >> gvt >> [ event overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC