t3.hrd.input
Class Wintab
java.lang.Object
t3.hrd.input.PointInputDevice
t3.hrd.input.Wintab
public class Wintab
- extends PointInputDevice
Wintab PointInputDevice class for use with graphics tablets.
Uses the following properties:
- hrd.pointInputDevices.n.xDivJump: number of x divisions the pen must move before a new event is triggered.
- hrd.pointInputDevices.n.yDivJump: number of y divisions the pen must move before a new event is triggered.
For our tablet: 1 Inch = 25.40mm; tablet is 48"*36"; has 48000 x divisions and 36000 y divisions;
works out around 40 divisions per mm; so xScale = 48.0 * 25.40 / 48000.0 = 0.025400;
and yScale = 36.0 * 25.40 / 36000.0 = 0.025400; and xDivJump=yDivJump=10.
- Author:
- pjt40
Constructor Summary |
Wintab(int clientId,
int personId,
Jama.Matrix mINPUTtoDESK,
boolean accurate,
java.util.Properties p,
java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Wintab
public Wintab(int clientId,
int personId,
Jama.Matrix mINPUTtoDESK,
boolean accurate,
java.util.Properties p,
java.lang.String prefix)
throws InputDeviceException
- Throws:
InputDeviceException
updateState
public boolean updateState()
throws InputDeviceException
- Specified by:
updateState
in class PointInputDevice
- Throws:
InputDeviceException
close
public void close()
throws InputDeviceException
- Specified by:
close
in class PointInputDevice
- Throws:
InputDeviceException