-
public final class DispatchMouseEventRequestRequest object containing input parameters for the InputDomain.dispatchMouseEvent command.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final Doublexprivate final Doubleyprivate final Integermodifiersprivate final Doubletimestampprivate final MouseButtonbuttonprivate final Integerbuttonsprivate final IntegerclickCountprivate final Doubleforceprivate final DoubletangentialPressureprivate final IntegertiltXprivate final IntegertiltYprivate final Integertwistprivate final DoubledeltaXprivate final DoubledeltaYprivate final StringpointerType
-
Constructor Summary
Constructors Constructor Description DispatchMouseEventRequest(String type, Double x, Double y, Integer modifiers, Double timestamp, MouseButton button, Integer buttons, Integer clickCount, Double force, Double tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Double deltaX, Double deltaY, String pointerType)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Doublecomponent2()final Doublecomponent3()final Integercomponent4()final Doublecomponent5()final MouseButtoncomponent6()final Integercomponent7()final Integercomponent8()final Doublecomponent9()final Doublecomponent10()final Integercomponent11()final Integercomponent12()final Integercomponent13()final Doublecomponent14()final Doublecomponent15()final Stringcomponent16()final DispatchMouseEventRequestcopy(String type, Double x, Double y, Integer modifiers, Double timestamp, MouseButton button, Integer buttons, Integer clickCount, Double force, Double tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Double deltaX, Double deltaY, String pointerType)final StringgetType()Type of the mouse event. final DoublegetX()X coordinate of the event relative to the main frame's viewport in CSS pixels. final DoublegetY()Y coordinate of the event relative to the main frame's viewport in CSS pixels. final IntegergetModifiers()Bit field representing pressed modifier keys. final DoublegetTimestamp()Time at which the event occurred. final MouseButtongetButton()Mouse button (default: "none"). final IntegergetButtons()A number indicating which buttons are pressed on the mouse when a mouse event is triggered. final IntegergetClickCount()Number of times the mouse button was clicked (default: 0). final DoublegetForce()The normalized pressure, which has a range of 0,1 (default: 0). final DoublegetTangentialPressure()The normalized tangential pressure, which has a range of -1,1 (default: 0). final IntegergetTiltX()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). final IntegergetTiltY()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). final IntegergetTwist()The clockwise rotation of a pen stylus around its own major axis, in degrees in the range 0,359 (default: 0). final DoublegetDeltaX()X delta in CSS pixels for mouse wheel event (default: 0). final DoublegetDeltaY()Y delta in CSS pixels for mouse wheel event (default: 0). final StringgetPointerType()Pointer type (default: "mouse"). -
-
Constructor Detail
-
DispatchMouseEventRequest
DispatchMouseEventRequest(String type, Double x, Double y, Integer modifiers, Double timestamp, MouseButton button, Integer buttons, Integer clickCount, Double force, Double tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Double deltaX, Double deltaY, String pointerType)
-
-
Method Detail
-
component1
final String component1()
-
component2
final Double component2()
-
component3
final Double component3()
-
component4
final Integer component4()
-
component5
final Double component5()
-
component6
final MouseButton component6()
-
component7
final Integer component7()
-
component8
final Integer component8()
-
component9
final Double component9()
-
component10
final Double component10()
-
component11
final Integer component11()
-
component12
final Integer component12()
-
component13
final Integer component13()
-
component14
final Double component14()
-
component15
final Double component15()
-
component16
final String component16()
-
copy
final DispatchMouseEventRequest copy(String type, Double x, Double y, Integer modifiers, Double timestamp, MouseButton button, Integer buttons, Integer clickCount, Double force, Double tangentialPressure, Integer tiltX, Integer tiltY, Integer twist, Double deltaX, Double deltaY, String pointerType)
-
getX
final Double getX()
X coordinate of the event relative to the main frame's viewport in CSS pixels.
-
getY
final Double 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.
-
getModifiers
final Integer getModifiers()
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
-
getTimestamp
final Double getTimestamp()
Time at which the event occurred.
-
getButton
final MouseButton getButton()
Mouse button (default: "none").
-
getButtons
final Integer getButtons()
A number indicating which buttons are pressed on the mouse when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, Forward=16, None=0.
-
getClickCount
final Integer getClickCount()
Number of times the mouse button was clicked (default: 0).
-
getTangentialPressure
final Double getTangentialPressure()
The normalized tangential pressure, which has a range of -1,1 (default: 0).
-
getTiltX
final Integer getTiltX()
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).
-
getTiltY
final Integer getTiltY()
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).
-
getTwist
final Integer getTwist()
The clockwise rotation of a pen stylus around its own major axis, in degrees in the range 0,359 (default: 0).
-
getPointerType
final String getPointerType()
Pointer type (default: "mouse").
-
-
-
-