Class TouchPoint


  • public class TouchPoint
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      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 id)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Number getForce()
      Force (default: 1.0).
      java.lang.Number getId()
      Identifier used to track touch sources between events, must be unique within an event.
      java.lang.Number getRadiusX()
      X radius of the touch area (default: 1.0).
      java.lang.Number getRadiusY()
      Y radius of the touch area (default: 1.0).
      java.lang.Number getRotationAngle()
      Rotation angle (default: 0.0).
      java.lang.Number getX()
      X coordinate of the event relative to the main frame's viewport in CSS pixels.
      java.lang.Number getY()
      Y coordinate of the event relative to the main frame's viewport in CSS pixels.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 id)
    • Method Detail

      • getX

        public java.lang.Number getX()
        X coordinate of the event relative to the main frame's viewport in CSS pixels.
      • getY

        public java.lang.Number 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

        public java.lang.Number getRadiusX()
        X radius of the touch area (default: 1.0).
      • getRadiusY

        public java.lang.Number getRadiusY()
        Y radius of the touch area (default: 1.0).
      • getRotationAngle

        public java.lang.Number getRotationAngle()
        Rotation angle (default: 0.0).
      • getForce

        public java.lang.Number getForce()
        Force (default: 1.0).
      • getId

        public java.lang.Number getId()
        Identifier used to track touch sources between events, must be unique within an event.