fr.emn.win32input.jwintab
Class TabletPacket

java.lang.Object
  extended byfr.emn.win32input.jwintab.TabletPacket

public class TabletPacket
extends java.lang.Object


Field Summary
static int BUT_DOWN
           
static int BUT_NONE
           
static int BUT_UP
           
 
Method Summary
 java.lang.String buttonsToString()
          For debug
 int[] getButtonEvent()
          Returns a button event, or null if nothing has changed.
 int getChangedDimensions()
           
 TabletContext getContext()
           
 TabletCursor getCursor()
           
 int getCursorNumber()
          Returns the cursor number (NOT the cursor index) this event describes.
 int getValue(int dimension)
          Returns the new value of a dimension.
 long getWhen()
           
 boolean hasChanged(int dimension)
          Returns whether a given (single) dimension has changed.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUT_NONE

public static final int BUT_NONE
See Also:
Constant Field Values

BUT_DOWN

public static final int BUT_DOWN
See Also:
Constant Field Values

BUT_UP

public static final int BUT_UP
See Also:
Constant Field Values
Method Detail

buttonsToString

public java.lang.String buttonsToString()
For debug


getButtonEvent

public int[] getButtonEvent()
Returns a button event, or null if nothing has changed.

The first int is the index of the button. The second int is the change in the button: BUT_NONE, BUT_DOWN, or BUT_UP.


getChangedDimensions

public int getChangedDimensions()

getContext

public TabletContext getContext()

getCursor

public TabletCursor getCursor()

getCursorNumber

public int getCursorNumber()
Returns the cursor number (NOT the cursor index) this event describes.


getValue

public int getValue(int dimension)
Returns the new value of a dimension. If the dimension has not changed, the previous value is returned. Returns 0 if this dimension is not supported by the device or has not been requested.

Parameters:
dimension - a single dimension.

getWhen

public long getWhen()

hasChanged

public boolean hasChanged(int dimension)
Returns whether a given (single) dimension has changed. Returns false if this dimension is not supported by the device or has not been requested.

Parameters:
dimension - a single dimension.

toString

public java.lang.String toString()