JTablet 1.2.0 API

cello.jtablet.event
Enum TabletEvent.Type

java.lang.Object
  extended by java.lang.Enum<TabletEvent.Type>
      extended by cello.jtablet.event.TabletEvent.Type
All Implemented Interfaces:
Serializable, Comparable<TabletEvent.Type>
Enclosing class:
TabletEvent

public static enum TabletEvent.Type
extends 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

PRESSED

public static final TabletEvent.Type PRESSED
Button or stylus tip pressed.


RELEASED

public static final TabletEvent.Type RELEASED
Button or stylus tip released.


ENTERED

public static final TabletEvent.Type ENTERED
Cursor enters proximity and/or component.


EXITED

public static final TabletEvent.Type EXITED
Cursor exits proximity and/or component.


MOVED

public static final TabletEvent.Type MOVED
Cursor moved with no button pressed.


DRAGGED

public static final TabletEvent.Type DRAGGED
Cursor moved with button pressed.


LEVEL_CHANGED

public static final TabletEvent.Type LEVEL_CHANGED
Level changed. This occurs when the stylus changes pressure or tilt, but does not move.


SCROLLED

public static final TabletEvent.Type SCROLLED
Mouse wheel scroll or multi-touch scroll (on Mac OS X).

See Also:
TabletEvent.getScrollX(), TabletEvent.getScrollY()

ZOOMED

public static final TabletEvent.Type ZOOMED
Zoom gesture (pinching on a Mac OS X multi-touch device). Use TabletEvent.getZoomFactor() to get the zoom factor amount.

See Also:
TabletEvent.getZoomFactor()

ROTATED

public static final TabletEvent.Type ROTATED
Rotate gesture (rotating two fingers on a Mac OS X multi-touch device). Use TabletEvent.getRotation() to get the rotation amount.

See Also:
TabletEvent.getRotation()

SWIPED

public static final TabletEvent.Type SWIPED
Swipe gesture (moving three fingers on a Mac OS X multi-touch device). Use TabletEvent.getScrollX() and TabletEvent.getScrollY() to get the swipe direction.

See Also:
TabletEvent.getScrollX(), TabletEvent.getScrollY()
Method Detail

values

public static TabletEvent.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TabletEvent.Type c : TabletEvent.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TabletEvent.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getId

public int getId()
Returns the AWTEvent id associated with this event type.

Returns:
the id

JTablet 1.2.0 API