t3.hrd.input
Class PointInputDevice

java.lang.Object
  extended by t3.hrd.input.PointInputDevice
Direct Known Subclasses:
MaxellAnotoPen, Sim, Wintab

public abstract class PointInputDevice
extends java.lang.Object

Abstract class representing a point input device, ie one that generates 2D coordinates. It stores its state in its state object. Calls to updateState must update the state object and return true iff the state was updated.

Author:
pjt40

Field Summary
 Jama.Matrix mINPUTtoDESK
           
 PointInputDeviceState state
           
 
Constructor Summary
PointInputDevice(int clientId, int pointInputType, int personId, Jama.Matrix mINPUTtoDESK)
           
 
Method Summary
abstract  void close()
           
 void setStateDESKcoordsFromINPUTcoords(double dINPUTx, double dINPUTy)
           
abstract  boolean updateState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

state

public final PointInputDeviceState state

mINPUTtoDESK

public final Jama.Matrix mINPUTtoDESK
Constructor Detail

PointInputDevice

public PointInputDevice(int clientId,
                        int pointInputType,
                        int personId,
                        Jama.Matrix mINPUTtoDESK)
Method Detail

setStateDESKcoordsFromINPUTcoords

public void setStateDESKcoordsFromINPUTcoords(double dINPUTx,
                                              double dINPUTy)

updateState

public abstract boolean updateState()
                             throws InputDeviceException
Throws:
InputDeviceException

close

public abstract void close()
                    throws InputDeviceException
Throws:
InputDeviceException