public static class GestureHandler.GestureEvent extends InputEvent
InputEvent.InputClass, InputEvent.InputType
Modifier and Type | Field and Description |
---|---|
static short |
EVENT_GESTURE_DETECTED
A gesture has been detected.
|
ALT_GRAPH_MASK, ALT_MASK, AUTOREPEAT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, BUTTON4_MASK, BUTTON5_MASK, BUTTON6_MASK, BUTTON7_MASK, BUTTON8_MASK, BUTTON9_MASK, BUTTONALL_MASK, BUTTONLAST_MASK, CONFINED_MASK, CTRL_MASK, INVISIBLE_MASK, META_MASK, SHIFT_MASK
consumedTag
Constructor and Description |
---|
GestureHandler.GestureEvent(Object source,
long when,
int modifiers,
GestureHandler handler)
Creates a gesture event with default type
EVENT_GESTURE_DETECTED . |
GestureHandler.GestureEvent(short event_type,
Object source,
long when,
int modifiers,
GestureHandler handler)
Creates a gesture event with custom event_type !
|
Modifier and Type | Method and Description |
---|---|
GestureHandler |
getHandler()
Return the
GestureHandler , which produced the event. |
getButtonDownCount, getButtonMask, getButtonsDown, getModifiers, getModifiersString, isAltDown, isAltGraphDown, isAnyButtonDown, isAutoRepeat, isButtonDown, isConfined, isControlDown, isInvisible, isMetaDown, isShiftDown, toString, toString
getAttachment, getEventType, getWhen, isConsumed, setAttachment, setConsumed, toHexString
getSource
public static final short EVENT_GESTURE_DETECTED
public GestureHandler.GestureEvent(Object source, long when, int modifiers, GestureHandler handler)
EVENT_GESTURE_DETECTED
.source
- when
- modifiers
- handler
- public GestureHandler.GestureEvent(short event_type, Object source, long when, int modifiers, GestureHandler handler)
event_type
- must lie within [400..599]source
- when
- modifiers
- handler
- public final GestureHandler getHandler()
GestureHandler
, which produced the event.Copyright 2010 JogAmp Community.