public class Touch2DPoint extends Object
Constructor and Description |
---|
Touch2DPoint(int deviceIndex,
TouchPoint originalDevice)
Initialized the pointer instance with a
TouchPoint . |
Modifier and Type | Method and Description |
---|---|
Instant |
getLastEventTime()
Gets the time of the last
event that was raised by this device. |
PointD |
getLastViewCoordinate()
Gets the last device coordinate in the view coordinate system.
|
TouchPoint |
getOriginalTouchPoint()
Gets the original
TouchPoint . |
int |
getTouchPointIndex()
Gets the device's index.
|
boolean |
isDown()
Indicates if this device is currently down or not.
|
boolean |
isPrimary()
Gets a value indicating whether this device is the primary one.
|
public Touch2DPoint(int deviceIndex, TouchPoint originalDevice)
TouchPoint
.deviceIndex
- The index of this device.originalDevice
- The TouchPoint
the pointer represents.public final Instant getLastEventTime()
event
that was raised by this device.public final PointD getLastViewCoordinate()
public final TouchPoint getOriginalTouchPoint()
TouchPoint
.public final int getTouchPointIndex()
public final boolean isDown()
true
.public final boolean isPrimary()
If TouchPointIndex
is 0
this property has the value true
, otherwise
false
.