public final class GestureEvent
extends java.lang.Object
Constructor and Description |
---|
GestureEvent(int x, int y, int globalX, int globalY, GestureType type, GestureDevice sourceDevice, boolean isAltDown, boolean isAltGraphDown, boolean isShiftDown, boolean isControlDown, boolean isMetaDown) |
Modifier and Type | Method and Description |
---|---|
int |
getGlobalX() |
int |
getGlobalY() |
GestureDevice |
getSourceDevice() |
GestureType |
getType() |
int |
getX() |
int |
getY() |
boolean |
isAltDown()
Returns whether or not the Alt modifier is down on this event.
返回此事件下Alt修改器是否关闭。 |
boolean |
isAltGraphDown()
Returns whether or not the AltGraph modifier is down on this event.
返回此事件是否关闭AltGraph修饰符。 |
boolean |
isControlDown()
Returns whether or not the Control modifier is down on this event.
返回Control修饰符是否在此事件上关闭。 |
boolean |
isMetaDown()
Returns whether or not the Meta modifier is down on this event.
返回此事件下Meta修饰符是否关闭。 |
boolean |
isShiftDown()
Returns whether or not the Shift modifier is down on this event.
返回Shift修饰符是否在此事件上关闭。 |
public GestureEvent(int x, int y, int globalX, int globalY, GestureType type, GestureDevice sourceDevice, boolean isAltDown, boolean isAltGraphDown, boolean isShiftDown, boolean isControlDown, boolean isMetaDown)
public int getX()
public int getY()
public int getGlobalX()
public int getGlobalY()
public GestureType getType()
public GestureDevice getSourceDevice()
public boolean isAltDown()
public boolean isAltGraphDown()
public boolean isShiftDown()
public boolean isControlDown()
public boolean isMetaDown()