Class Input.TouchPoint

    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      protected static long serialVersionUID
      For Object Serialization.
       
      Type Properties
      Modifier and Type Field
      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).
      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)

      OPTIONAL
      EXPERIMENTAL
      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).
      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​(Number x, Number y, Number radiusX, Number radiusY, Number rotationAngle, Number force, Number tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Number id)
      Constructor
      TouchPoint​(JsonObject jo)
      JSON Object Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object other)
      Checks whether 'this' equals an input Java-Object
      int hashCode()
      Generates a Hash-Code for 'this' instance
      boolean[] optionals()
      Implementing this method allows sub-classes to specify which JSON Properties may be absent or null.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • 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.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)

        OPTIONAL
        EXPERIMENTAL
      • tiltY

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

        OPTIONAL
        EXPERIMENTAL
      • 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).

        OPTIONAL
        EXPERIMENTAL
      • 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​(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.Integer tiltX,
                          java.lang.Integer tiltY,
                          java.lang.Integer twist,
                          java.lang.Number id)
        Constructor
        Parameters:
        x - X coordinate of the event relative to the main frame's viewport in CSS pixels.
        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.
        radiusX - X radius of the touch area (default: 1.0).
        OPTIONAL
        radiusY - Y radius of the touch area (default: 1.0).
        OPTIONAL
        rotationAngle - Rotation angle (default: 0.0).
        OPTIONAL
        force - Force (default: 1.0).
        OPTIONAL
        tangentialPressure - The normalized tangential pressure, which has a range of [-1,1] (default: 0).
        OPTIONAL
        EXPERIMENTAL
        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
        EXPERIMENTAL
        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
        EXPERIMENTAL
        twist - The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).
        OPTIONAL
        EXPERIMENTAL
        id - Identifier used to track touch sources between events, must be unique within an event.
        OPTIONAL
    • Method Detail

      • optionals

        🡅  🡇     🗕  🗗  🗖
        public boolean[] optionals()
        Description copied from class: BaseType
        Implementing this method allows sub-classes to specify which JSON Properties may be absent or null. When binding a JsonObject to a Java-Object, if some of the expected fields for the Java-Object map to Properties which might be left-out or omitted, then that may be indicated by setting that fields array position TRUE.

        NOTE: This array should have a length equal to the number of fields contained by the Java Object. The first boolean in the array should specify whether the first Object Field may by absent. The second boolean should specify whether the second Object Field is optional in the JSON - and so on and so forth...
        Specified by:
        optionals in class BaseType
        Returns:
        A boolean[] array whose length is precisely equal to the number of fields in the Java Object.
      • equals

        🡅  🡇     🗕  🗗  🗖
        public boolean equals​(java.lang.Object other)
        Checks whether 'this' equals an input Java-Object
        Overrides:
        equals in class java.lang.Object
      • hashCode

        🡅     🗕  🗗  🗖
        public int hashCode()
        Generates a Hash-Code for 'this' instance
        Overrides:
        hashCode in class java.lang.Object