org.ximtec.igesture.io.wacomclient
Class WacomReader
java.lang.Object
org.sigtec.input.AbstractInputDevice
org.ximtec.igesture.io.wacomclient.WacomReader
- All Implemented Interfaces:
- org.sigtec.input.InputDevice, ButtonDeviceEventListener, WacomCallback
public class WacomReader
- extends org.sigtec.input.AbstractInputDevice
- implements ButtonDeviceEventListener, WacomCallback
A wacom tablet PC reader.
- Version:
- 1.0, Nov 2007
- Author:
- Michele Croci, mcroci@gmail.com
| Nested classes/interfaces inherited from class org.sigtec.input.AbstractInputDevice |
org.sigtec.input.AbstractInputDevice.InputDeviceNotifier |
| Methods inherited from class org.sigtec.input.AbstractInputDevice |
addInputDeviceEventListener, fireInputDeviceEvent, removeInputDeviceEventListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WacomReader
public WacomReader()
init
public void init()
- Initialises the tablet reader and starts a new thread polling the tablet.
callbackFunction
public void callbackFunction(int x,
int y,
int z,
int pkstatus,
int npress,
int tpress,
long timeStamp,
Wintab32.ORIENTATION orientation,
Wintab32.ROTATION rotation,
int button)
- Specified by:
callbackFunction in interface WacomCallback
createTablet
public static List<WacomReader> createTablet()
- Creates a list of tablet readers. Only one tablet reader is created.
- Returns:
- a list of tablet readers.
addButtonDeviceEventListener
public void addButtonDeviceEventListener(ButtonDeviceHandler listener)
- Description copied from interface:
ButtonDeviceEventListener
- Adds a listener to the button device.
- Specified by:
addButtonDeviceEventListener in interface ButtonDeviceEventListener
- Parameters:
listener - the listener to be added.
removeButtonDeviceEventListener
public void removeButtonDeviceEventListener(ButtonDeviceHandler listener)
- Description copied from interface:
ButtonDeviceEventListener
- Removes a listener from the button device.
- Specified by:
removeButtonDeviceEventListener in interface ButtonDeviceEventListener
- Parameters:
listener - the listener to be removed.
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.