public class TouchPoint extends Object
| Constructor and Description |
|---|
TouchPoint() |
| Modifier and Type | Method and Description |
|---|---|
Double |
getForce()
Force (default: 1.0).
|
Double |
getId()
Identifier used to track touch sources between events, must be unique within an event.
|
Double |
getRadiusX()
X radius of the touch area (default: 1.0).
|
Double |
getRadiusY()
Y radius of the touch area (default: 1.0).
|
Double |
getRotationAngle()
Rotation angle (default: 0.0).
|
Double |
getTangentialPressure()
The normalized tangential pressure, which has a range of [-1,1] (default: 0).
|
Integer |
getTiltX()
The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y
axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
|
Integer |
getTiltY()
The plane angle between the X-Z plane and the plane containing both the stylus axis and the X
axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
|
Integer |
getTwist()
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range
[0,359] (default: 0).
|
Double |
getX()
X coordinate of the event relative to the main frame's viewport in CSS pixels.
|
Double |
getY()
Y coordinate of the event relative to the main frame's viewport in CSS pixels.
|
void |
setForce(Double force)
Force (default: 1.0).
|
void |
setId(Double id)
Identifier used to track touch sources between events, must be unique within an event.
|
void |
setRadiusX(Double radiusX)
X radius of the touch area (default: 1.0).
|
void |
setRadiusY(Double radiusY)
Y radius of the touch area (default: 1.0).
|
void |
setRotationAngle(Double rotationAngle)
Rotation angle (default: 0.0).
|
void |
setTangentialPressure(Double tangentialPressure)
The normalized tangential pressure, which has a range of [-1,1] (default: 0).
|
void |
setTiltX(Integer tiltX)
The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y
axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)
|
void |
setTiltY(Integer tiltY)
The plane angle between the X-Z plane and the plane containing both the stylus axis and the X
axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).
|
void |
setTwist(Integer twist)
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range
[0,359] (default: 0).
|
void |
setX(Double x)
X coordinate of the event relative to the main frame's viewport in CSS pixels.
|
void |
setY(Double y)
Y coordinate of the event relative to the main frame's viewport in CSS pixels.
|
public Double getX()
public void setX(Double x)
public Double getY()
public void setY(Double y)
public Double getRadiusX()
public void setRadiusX(Double radiusX)
public Double getRadiusY()
public void setRadiusY(Double radiusY)
public Double getRotationAngle()
public void setRotationAngle(Double rotationAngle)
public Double getForce()
public void setForce(Double force)
public Double getTangentialPressure()
public void setTangentialPressure(Double tangentialPressure)
public Integer getTiltX()
public void setTiltX(Integer tiltX)
public Integer getTiltY()
public void setTiltY(Integer tiltY)
public Integer getTwist()
public void setTwist(Integer twist)
public Double getId()
public void setId(Double id)
Copyright © 2021 Kenan Klisura. All rights reserved.