org.ximtec.igesture.io.wacom
Class WacomUtils
java.lang.Object
java.lang.Thread
org.ximtec.igesture.io.wacom.WacomUtils
- All Implemented Interfaces:
- Runnable
public class WacomUtils
- extends Thread
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
DVC_X
public static final int DVC_X
- See Also:
- Constant Field Values
DVC_Y
public static final int DVC_Y
- See Also:
- Constant Field Values
DVC_Z
public static final int DVC_Z
- See Also:
- Constant Field Values
DVC_NPRESSURE
public static final int DVC_NPRESSURE
- See Also:
- Constant Field Values
DVC_TPRESSURE
public static final int DVC_TPRESSURE
- See Also:
- Constant Field Values
DVC_ORIENTATION
public static final int DVC_ORIENTATION
- See Also:
- Constant Field Values
DVC_ROTATION
public static final int DVC_ROTATION
- See Also:
- Constant Field Values
WacomUtils
public WacomUtils()
WacomUtils
public WacomUtils(WacomCallback wCallback)
open
public void open()
- Open session with wacom Tablet PC
close
public void close()
- Close session with wacom Tablet PC
getPacket
public Wintab32.PACKET getPacket()
- Get single packet
- Returns:
- the packet (saved in an array)
getOnePacket
public Wintab32.PACKET getOnePacket()
- Get single packet, discard 3
- Returns:
- the packet (saved in an array)
getPackets
public int getPackets(int number,
Wintab32.PACKET[] arr)
- Get n packets
- Parameters:
number - the maximal number of packets to be retrievedarr - the array where packets have to be saved
- Returns:
- the received packets
run
public void run()
- Run method
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
isDataSupported
public boolean isDataSupported(int dataTypeId)
- Determine if a particular type of data can be retrieved or not
- Parameters:
datatype - the type representing the data
- Returns:
- true if the data is supported, false otherwise
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.