synergynetframework.mtinput
Class LongHoldDetector

java.lang.Object
  extended by synergynetframework.mtinput.LongHoldDetector

public class LongHoldDetector
extends java.lang.Object

The Class LongHoldDetector.


Constructor Summary
LongHoldDetector(long time, float distance, java.util.List<ItemListener> itemListeners, ContentItem item)
          Instantiates a new long hold detector.
 
Method Summary
 float getDistanceSensitivity()
          Gets the distance sensitivity.
 long getTimeSensitivity()
          Gets the time sensitivity.
 void registerCursor(long id, java.awt.geom.Point2D.Float position)
          Register cursor.
 void setSensitivity(long time, float distance)
          Sets the sensitivity.
 void unregisterCursor(long id)
          Unregister cursor.
 void update(float tpf)
          Update.
 void updateCursorPostion(long id, java.awt.geom.Point2D.Float position)
          Update cursor postion.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongHoldDetector

public LongHoldDetector(long time,
                        float distance,
                        java.util.List<ItemListener> itemListeners,
                        ContentItem item)
Instantiates a new long hold detector.

Parameters:
time - the time
distance - the distance
itemListeners - the item listeners
item - the item
Method Detail

getDistanceSensitivity

public float getDistanceSensitivity()
Gets the distance sensitivity.

Returns:
the distance sensitivity

getTimeSensitivity

public long getTimeSensitivity()
Gets the time sensitivity.

Returns:
the time sensitivity

registerCursor

public void registerCursor(long id,
                           java.awt.geom.Point2D.Float position)
Register cursor.

Parameters:
id - the id
position - the position

setSensitivity

public void setSensitivity(long time,
                           float distance)
Sets the sensitivity.

Parameters:
time - the time
distance - the distance

unregisterCursor

public void unregisterCursor(long id)
Unregister cursor.

Parameters:
id - the id

update

public void update(float tpf)
Update.

Parameters:
tpf - the tpf

updateCursorPostion

public void updateCursorPostion(long id,
                                java.awt.geom.Point2D.Float position)
Update cursor postion.

Parameters:
id - the id
position - the position