© 2006-2007 ETH Zurich

org.ximtec.igesture.io.wacomclient
Class WacomReader

java.lang.Object
  extended by org.sigtec.input.AbstractInputDevice
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.sigtec.input.AbstractInputDevice
org.sigtec.input.AbstractInputDevice.InputDeviceNotifier
 
Constructor Summary
WacomReader()
           
 
Method Summary
 void addButtonDeviceEventListener(ButtonDeviceHandler listener)
          Adds a listener to the button device.
 void callbackFunction(int x, int y, int z, int pkstatus, int npress, int tpress, long timeStamp, Wintab32.ORIENTATION orientation, Wintab32.ROTATION rotation, int button)
           
static List<WacomReader> createTablet()
          Creates a list of tablet readers.
 void init()
          Initialises the tablet reader and starts a new thread polling the tablet.
 void removeButtonDeviceEventListener(ButtonDeviceHandler listener)
          Removes a listener from the button device.
 
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
 

Constructor Detail

WacomReader

public WacomReader()
Method Detail

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.

© 2006-2007 ETH Zurich

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