public class PenEvent extends SurfacePointerEvent
Modifier and Type | Field and Description |
---|---|
static int |
EVEN_IF_COVERED
This only works with WANT_PEN_MOVED_ONOFF - and it won't affect the cursor or tooltips.
|
Control |
originalTarget |
static int |
OVERRIDE_NO_MOUSE |
static int |
PEN_INSIDE_STATE_TAG |
static int |
swipeResolution |
static int |
TipDelay
This is the tool tip delay time in milliseconds.
|
static int |
WANT_GESTURE_TAG |
static int |
WANT_PEN_MOVE_TAG |
static int |
WANT_PEN_MOVED_INSIDE |
static int |
WANT_PEN_MOVED_ONOFF |
static int |
WANT_PEN_MOVED_OUTSIDE |
static int |
WANT_PINCH_GESTURE |
static int |
WANT_SWIPE_GESTURE |
static int |
WHEN_NOT_ON_TOP_FRAME |
BUTTON_4, BUTTON_5, BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_PRESS, BUTTON_RIGHT, BUTTON_UP, buttons, modifiers, MOUSE_DRAG, MOUSE_HOVER_OVER, MOUSE_MOVE, MOUSE_STOP_HOVER, MOVED_OFF, MOVED_ON, PEN_DOWN, PEN_DRAG, PEN_MOVE, PEN_MOVED_OFF, PEN_MOVED_ON, PEN_UP, SCROLL_DOWN, SCROLL_UP, SWIPED, swipeStartX, swipeStartY, SWIPING, SWIPING_ENDED, x, y
ALT, CONDITIONAL, CONTROL, DOUBLE_PRESS, FROM_INPUT_METHOD, FROM_OTHER_WINDOW, INVISIBLE, MIDDLE_BUTTON, MULTICHARACTER, ONLY, POST_TO_BACK, REPEATED, REPLACEMENT, RIGHT_BUTTON, SHIFT, SPECIAL, TRANSFERRED_PRESS
Constructor and Description |
---|
PenEvent() |
Modifier and Type | Method and Description |
---|---|
static boolean |
gesturesNeeded() |
static int |
getGestureOptionsFor(Control who) |
static int |
getOptionsFor(Control who) |
static Vector |
getWantPenMoves(Vector dest)
Get hard references to all Controls that want some kind of PEN_MOVE
event.
|
static Vector |
getWantPenSwipes(Vector dest)
Get hard references to all Controls that want some kind of PEN_MOVE
event.
|
static void |
setAsPenOn(Control c,
boolean isOn) |
static void |
setCursor(Control who,
int cursor) |
protected static void |
setOptions(Control who,
int tag,
int toSet,
int toClear) |
static void |
wantGestures(Control who,
int options,
boolean enable)
It is necessary to call this method if a Control wishes to receive gesture notifications.
|
static void |
wantPenMoved(Control who,
int options,
boolean enable)
It is necessary to call this method if a Control wishes to receive Pen/Mouse movement
notifications.
|
isSurfacePointerEvent
getSurface
clearPostData, getPostData, isReused, setPostData, setReused
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
public static final int WANT_PEN_MOVE_TAG
public static final int WANT_GESTURE_TAG
public static final int PEN_INSIDE_STATE_TAG
public static final int WANT_PEN_MOVED_ONOFF
public static final int WANT_PEN_MOVED_INSIDE
public static final int WANT_PEN_MOVED_OUTSIDE
public static final int WHEN_NOT_ON_TOP_FRAME
public static final int OVERRIDE_NO_MOUSE
public static final int EVEN_IF_COVERED
public static final int WANT_SWIPE_GESTURE
public static final int WANT_PINCH_GESTURE
public static int swipeResolution
public static int TipDelay
public Control originalTarget
public static void setCursor(Control who, int cursor)
public static boolean gesturesNeeded()
protected static void setOptions(Control who, int tag, int toSet, int toClear)
public static void wantPenMoved(Control who, int options, boolean enable)
who
- The control requesting notifications.options
- any of the WANT_PEN_MOVED_XXX options ORed together.enable
- true to enable notification, false to disable them.public static void wantGestures(Control who, int options, boolean enable)
who
- The control requesting notifications.options
- any of the WANT_XXX_GESTURE options ORed together.enable
- true to enable notification, false to disable them.public static int getOptionsFor(Control who)
public static int getGestureOptionsFor(Control who)
public static Vector getWantPenMoves(Vector dest)
dest
- a destination Vector or null to create and return a new one.public static Vector getWantPenSwipes(Vector dest)
dest
- a destination Vector or null to create and return a new one.public static void setAsPenOn(Control c, boolean isOn)