-
public final class TouchPoint
-
-
Field Summary
Fields Modifier and Type Field Description private final Doublexprivate final Doubleyprivate final DoubleradiusXprivate final DoubleradiusYprivate final DoublerotationAngleprivate final Doubleforceprivate final DoubletangentialPressureprivate final IntegertiltXprivate final IntegertiltYprivate final Integertwistprivate final Doubleid
-
Method Summary
Modifier and Type Method Description final Doublecomponent1()final Doublecomponent2()final Doublecomponent3()final Doublecomponent4()final Doublecomponent5()final Doublecomponent6()final Doublecomponent7()final Integercomponent8()final Integercomponent9()final Integercomponent10()final Doublecomponent11()final TouchPointcopy(Double x, Double y, Double radiusX, Double radiusY, Double rotationAngle, Double force, Double tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Double id)final DoublegetX()X coordinate of the event relative to the main frame's viewport in CSS pixels. final DoublegetY()Y coordinate of the event relative to the main frame's viewport in CSS pixels. final DoublegetRadiusX()X radius of the touch area (default: 1.0). final DoublegetRadiusY()Y radius of the touch area (default: 1.0). final DoublegetRotationAngle()Rotation angle (default: 0.0). final DoublegetForce()Force (default: 1.0). final DoublegetTangentialPressure()The normalized tangential pressure, which has a range of -1,1 (default: 0). final IntegergetTiltX()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) final IntegergetTiltY()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). final IntegergetTwist()The clockwise rotation of a pen stylus around its own major axis, in degrees in the range 0,359 (default: 0). final DoublegetId()Identifier used to track touch sources between events, must be unique within an event. -
-
Method Detail
-
component1
final Double component1()
-
component2
final Double component2()
-
component3
final Double component3()
-
component4
final Double component4()
-
component5
final Double component5()
-
component6
final Double component6()
-
component7
final Double component7()
-
component8
final Integer component8()
-
component9
final Integer component9()
-
component10
final Integer component10()
-
component11
final Double component11()
-
copy
final TouchPoint copy(Double x, Double y, Double radiusX, Double radiusY, Double rotationAngle, Double force, Double tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Double id)
-
getX
final Double getX()
X coordinate of the event relative to the main frame's viewport in CSS pixels.
-
getY
final Double getY()
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
-
getRadiusX
final Double getRadiusX()
X radius of the touch area (default: 1.0).
-
getRadiusY
final Double getRadiusY()
Y radius of the touch area (default: 1.0).
-
getRotationAngle
final Double getRotationAngle()
Rotation angle (default: 0.0).
-
getTangentialPressure
final Double getTangentialPressure()
The normalized tangential pressure, which has a range of -1,1 (default: 0).
-
getTiltX
final 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)
-
getTiltY
final 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).
-
getTwist
final Integer getTwist()
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range 0,359 (default: 0).
-
-
-
-