synergynetframework.mtinput.events
Class MultiTouchEvent

java.lang.Object
  extended by synergynetframework.mtinput.events.MultiTouchEvent
Direct Known Subclasses:
MultiTouchCursorEvent, MultiTouchObjectEvent

public abstract class MultiTouchEvent
extends java.lang.Object

Base class for multi-touch cursor events whose coordinate system is based on the input service that created it, and its mode. Supports position, rotation, velocity and pressure, although this values will only be present for tables that provide that information.

Author:
dcs0ah1

Constructor Summary
MultiTouchEvent(long id, java.awt.geom.Point2D.Float position)
          Instantiates a new multi touch event.
MultiTouchEvent(long id, java.awt.geom.Point2D.Float position, java.awt.geom.Point2D.Float velocity)
          Instantiates a new multi touch event.
MultiTouchEvent(long id, java.awt.geom.Point2D.Float position, java.awt.geom.Point2D.Float velocity, float pressure, double angle)
          Instantiates a new multi touch event.
 
Method Summary
 double getAngle()
          Gets the angle.
 long getCursorID()
          Gets the cursor id.
 java.awt.geom.Point2D.Float getPosition()
          Position in the coordinate system of the table.
 float getPressure()
          Gets the pressure.
 long getTimeOfCreationNanos()
          Gets the time of creation nanos.
 java.awt.geom.Point2D.Float getVelocity()
          Gets the velocity.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiTouchEvent

public MultiTouchEvent(long id,
                       java.awt.geom.Point2D.Float position)
Instantiates a new multi touch event.

Parameters:
id - the id
position - the position

MultiTouchEvent

public MultiTouchEvent(long id,
                       java.awt.geom.Point2D.Float position,
                       java.awt.geom.Point2D.Float velocity)
Instantiates a new multi touch event.

Parameters:
id - the id
position - the position
velocity - the velocity

MultiTouchEvent

public MultiTouchEvent(long id,
                       java.awt.geom.Point2D.Float position,
                       java.awt.geom.Point2D.Float velocity,
                       float pressure,
                       double angle)
Instantiates a new multi touch event.

Parameters:
id - the id
position - the position
velocity - the velocity
pressure - the pressure
angle - the angle
Method Detail

getAngle

public double getAngle()
Gets the angle.

Returns:
the angle

getCursorID

public long getCursorID()
Gets the cursor id.

Returns:
the cursor id

getPosition

public java.awt.geom.Point2D.Float getPosition()
Position in the coordinate system of the table.

Returns:
the position

getPressure

public float getPressure()
Gets the pressure.

Returns:
the pressure

getTimeOfCreationNanos

public long getTimeOfCreationNanos()
Gets the time of creation nanos.

Returns:
the time of creation nanos

getVelocity

public java.awt.geom.Point2D.Float getVelocity()
Gets the velocity.

Returns:
the velocity

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object