© 2006-2007 ETH Zurich

org.ximtec.igesture.io.wacom
Class WacomUtils

java.lang.Object
  extended by java.lang.Thread
      extended by org.ximtec.igesture.io.wacom.WacomUtils
All Implemented Interfaces:
Runnable

public class WacomUtils
extends Thread


Nested Class Summary
static interface WacomUtils.TabletProc
           
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static int DVC_NPRESSURE
           
static int DVC_ORIENTATION
           
static int DVC_ROTATION
           
static int DVC_TPRESSURE
           
static int DVC_X
           
static int DVC_Y
           
static int DVC_Z
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WacomUtils()
           
WacomUtils(WacomCallback wCallback)
           
 
Method Summary
 void close()
          Close session with wacom Tablet PC
 Wintab32.PACKET getOnePacket()
          Get single packet, discard 3
 Wintab32.PACKET getPacket()
          Get single packet
 int getPackets(int number, Wintab32.PACKET[] arr)
          Get n packets
 boolean isDataSupported(int dataTypeId)
          Determine if a particular type of data can be retrieved or not
 void open()
          Open session with wacom Tablet PC
 void run()
          Run method
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

WacomUtils

public WacomUtils()

WacomUtils

public WacomUtils(WacomCallback wCallback)
Method Detail

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 retrieved
arr - 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

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.