Class Input.TouchPoint

    • Field Summary

       
      Serializable ID
      Modifier and Type Field Description
      protected static long serialVersionUID
       
      Type Fields / Properties (from Google & Browser Specs)
      Modifier and Type Field Description
      Number force
      Force (default: 1.0).
      Number id
      Identifier used to track touch sources between events, must be unique within an event.
      Number radiusX
      X radius of the touch area (default: 1.0).
      Number radiusY
      Y radius of the touch area (default: 1.0).
      Number rotationAngle
      Rotation angle (default: 0.0).
      Number tangentialPressure
      The normalized tangential pressure, which has a range of [-1,1] (default: 0).
      Number 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)
      Number 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).
      Integer twist
      The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
      Number x
      X coordinate of the event relative to the main frame's viewport in CSS pixels.
      Number y
      Y coordinate of the event relative to the main frame's viewport in CSS pixels.
    • Constructor Summary

      Constructors 
      Constructor Description
      TouchPoint​(ReadOnlyList<Boolean> isPresent, Number x, Number y, Number radiusX, Number radiusY, Number rotationAngle, Number force, Number tangentialPressure, Number tiltX, Number tiltY, Integer twist, Number id)
      Constructor.
    • Field Detail

      • serialVersionUID

        🡇     🗕  🗗  🗖
        protected static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.
        See Also:
        Constant Field Values
      • x

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Number x
        X coordinate of the event relative to the main frame's viewport in CSS pixels.
      • y

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Number y
        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.
      • tiltX

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Number 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)
        OPTIONAL
      • tiltY

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Number 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).
        OPTIONAL
      • twist

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Integer twist
        The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
        OPTIONALEXPERIMENTAL
      • id

        🡅  🡇     🗕  🗗  🗖
        public final java.lang.Number id
        Identifier used to track touch sources between events, must be unique within an event.
        OPTIONAL
    • Constructor Detail

      • TouchPoint

        🡅  🡇     🗕  🗗  🗖
        public TouchPoint​(ReadOnlyList<java.lang.Boolean> isPresent,
                          java.lang.Number x,
                          java.lang.Number y,
                          java.lang.Number radiusX,
                          java.lang.Number radiusY,
                          java.lang.Number rotationAngle,
                          java.lang.Number force,
                          java.lang.Number tangentialPressure,
                          java.lang.Number tiltX,
                          java.lang.Number tiltY,
                          java.lang.Integer twist,
                          java.lang.Number id)
        Constructor. Please review this class' fields for documentation.