|
JTablet 1.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TabletEvent.Type> cello.jtablet.event.TabletEvent.Type
public static enum TabletEvent.Type
This enum is used to specify the possible types of a TabletEvent
.
Enum Constant Summary | |
---|---|
DRAGGED
Cursor moved with button pressed. |
|
ENTERED
Cursor enters proximity and/or component. |
|
EXITED
Cursor exits proximity and/or component. |
|
LEVEL_CHANGED
Level changed. |
|
MOVED
Cursor moved with no button pressed. |
|
PRESSED
Button or stylus tip pressed. |
|
RELEASED
Button or stylus tip released. |
|
ROTATED
Rotate gesture (rotating two fingers on a Mac OS X multi-touch device). |
|
SCROLLED
Mouse wheel scroll or multi-touch scroll (on Mac OS X). |
|
SWIPED
Swipe gesture (moving three fingers on a Mac OS X multi-touch device). |
|
ZOOMED
Zoom gesture (pinching on a Mac OS X multi-touch device). |
Method Summary | |
---|---|
int |
getId()
Returns the AWTEvent id associated with this event type. |
static TabletEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TabletEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TabletEvent.Type PRESSED
public static final TabletEvent.Type RELEASED
public static final TabletEvent.Type ENTERED
public static final TabletEvent.Type EXITED
public static final TabletEvent.Type MOVED
public static final TabletEvent.Type DRAGGED
public static final TabletEvent.Type LEVEL_CHANGED
public static final TabletEvent.Type SCROLLED
TabletEvent.getScrollX()
,
TabletEvent.getScrollY()
public static final TabletEvent.Type ZOOMED
TabletEvent.getZoomFactor()
to get the
zoom factor amount.
TabletEvent.getZoomFactor()
public static final TabletEvent.Type ROTATED
TabletEvent.getRotation()
to get the rotation amount.
TabletEvent.getRotation()
public static final TabletEvent.Type SWIPED
TabletEvent.getScrollX()
and TabletEvent.getScrollY()
to get the swipe direction.
TabletEvent.getScrollX()
,
TabletEvent.getScrollY()
Method Detail |
---|
public static TabletEvent.Type[] values()
for (TabletEvent.Type c : TabletEvent.Type.values()) System.out.println(c);
public static TabletEvent.Type valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getId()
|
JTablet 1.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |