Class PointerEvent

All Implemented Interfaces:
Serializable, 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:
  • Field Details

    • 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 String pointerType_
    • isPrimary_

      private boolean isPrimary_
  • Constructor Details

    • PointerEvent

      public PointerEvent()
      Default constructor.
    • PointerEvent

      public PointerEvent(DomNode domNode, 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
      button - the button code, must be MouseEvent.BUTTON_LEFT, MouseEvent.BUTTON_MIDDLE or MouseEvent.BUTTON_RIGHT
      detail - the detail value
  • Method Details

    • jsConstructor

      public static org.htmlunit.corejs.javascript.Scriptable jsConstructor(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, 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 Object getValue(org.htmlunit.corejs.javascript.ScriptableObject object, String name, 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 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