© 2006-2007 ETH Zurich

org.ximtec.igesture.io.wacom
Class Win32TabletProxy

java.lang.Object
  extended by org.ximtec.igesture.io.wacom.Win32TabletProxy

public class Win32TabletProxy
extends Object

Reads the mouse position.

Version:
1.0, Oct 2007
Author:
Michele Croci

Constructor Summary
Win32TabletProxy()
           
 
Method Summary
 int buttonPressed()
           
 Point getLastCursorLocation()
          Returns the location of the tablet cursor on the screen.
 Wintab32.PACKET getLastPacket()
          Return the last readed packet
 void getNextPacket()
          Get the next packet data from the tablet Pc
 Wintab32.ORIENTATION getOrientation()
          Returns the orientation of the pen on the table
 int getPressure()
          Returns the pressure of the pen on the table
 Wintab32.ROTATION getRotation()
          Returns the rotation of the pen on the table
 int getTangentPressure()
          Returns the tangent pressure of the pen on the table
 long getTimeStamp()
          Returns the pressure of the pen on the table
 int getzval()
          Returns the z-value of the cursor position
 boolean isExtraDataSupported()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Win32TabletProxy

public Win32TabletProxy()
Method Detail

isExtraDataSupported

public boolean isExtraDataSupported()

getNextPacket

public void getNextPacket()
Get the next packet data from the tablet Pc


getLastPacket

public Wintab32.PACKET getLastPacket()
Return the last readed packet


getTimeStamp

public long getTimeStamp()
Returns the pressure of the pen on the table

Returns:
the timestamp

getPressure

public int getPressure()
Returns the pressure of the pen on the table

Returns:
the pressure (min =0, max = 1023)

getTangentPressure

public int getTangentPressure()
Returns the tangent pressure of the pen on the table

Returns:
the tangent pressure

getzval

public int getzval()
Returns the z-value of the cursor position

Returns:
z-value

getOrientation

public Wintab32.ORIENTATION getOrientation()
Returns the orientation of the pen on the table

Returns:
orientation (altitude, azimuth, twist)

getRotation

public Wintab32.ROTATION getRotation()
Returns the rotation of the pen on the table

Returns:
rotation (pitch, roll, yaw)

getLastCursorLocation

public Point getLastCursorLocation()
Returns the location of the tablet cursor on the screen.

Returns:
the location of the tablet cursor on the screen.

buttonPressed

public int buttonPressed()

© 2006-2007 ETH Zurich

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