Class PointerEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class PointerEvent
    extends MouseEvent
    JavaScript object representing a PointerEvent.
    See Also:
    W3C Spec, MSDN, Serialized Form
    • Field Detail

      • pointerId_

        private int pointerId_
      • width_

        private int width_
      • height_

        private int height_
      • pressure_

        private double pressure_
      • tiltX_

        private int tiltX_
      • tiltY_

        private int tiltY_
      • pointerType_

        private java.lang.String pointerType_
      • isPrimary_

        private boolean isPrimary_
    • Constructor Detail

      • PointerEvent

        public PointerEvent()
        Default constructor.
      • PointerEvent

        public PointerEvent​(DomNode domNode,
                            java.lang.String type,
                            boolean shiftKey,
                            boolean ctrlKey,
                            boolean altKey,
                            int button,
                            int detail)
        Creates a new event instance.
        Parameters:
        domNode - the DOM node that triggered the event
        type - the event type
        shiftKey - true if SHIFT is pressed
        ctrlKey - true if CTRL is pressed
        altKey - true if ALT is pressed
        detail - the detail value
        button - the button code, must be MouseEvent.BUTTON_LEFT, MouseEvent.BUTTON_MIDDLE or MouseEvent.BUTTON_RIGHT
    • Method Detail

      • jsConstructor

        public static org.htmlunit.corejs.javascript.Scriptable jsConstructor​(org.htmlunit.corejs.javascript.Context cx,
                                                                              org.htmlunit.corejs.javascript.Scriptable scope,
                                                                              java.lang.Object[] args,
                                                                              org.htmlunit.corejs.javascript.Function ctorObj,
                                                                              boolean inNewExpr)
        JavaScript constructor.
        Parameters:
        cx - the current context
        scope - the scope
        args - the arguments to the WebSocket constructor
        ctorObj - the function object
        inNewExpr - Is new or not
        Returns:
        the java object to allow JavaScript to access
      • getValue

        private static java.lang.Object getValue​(org.htmlunit.corejs.javascript.ScriptableObject object,
                                                 java.lang.String name,
                                                 java.lang.Object defaulValue)
      • getPointerId

        public long getPointerId()
        Returns:
        the pointerId
      • getWidth

        public long getWidth()
        Returns:
        the width
      • getHeight

        public long getHeight()
        Returns:
        the height
      • getPressure

        public double getPressure()
        Returns:
        the pressure
      • getTiltX

        public long getTiltX()
        Returns:
        the tiltX
      • getTiltY

        public long getTiltY()
        Returns:
        the tiltY
      • getPointerType

        public java.lang.String getPointerType()
        Returns:
        the pointerType
      • isPrimary_js

        public boolean isPrimary_js()
        Returns:
        the isPrimary
      • getAltitudeAngle

        public double getAltitudeAngle()
        Returns:
        the pointerType
      • getAzimuthAngle

        public double getAzimuthAngle()
        Returns:
        the pointerType