Package org.loboevolution.events
Interface PointerEvent
- All Superinterfaces:
Event
,MouseEvent
,UIEvent
- All Known Implementing Classes:
PointerEventImpl
The PointerEvent interface represents the state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.
- See Also:
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Method Summary
Modifier and TypeMethodDescriptionThe height read-only property of the PointerEvent interface represents the height of the pointer's contact geometry, along the y-axis (in CSS pixels).The isPrimary read-only property of the PointerEvent interface indicates whether or not the pointer device that created the event is the primary pointer.The pointerId read-only property of the PointerEvent interface is an identifier assigned to a given pointer event.The pointerType read-only property of the PointerEvent interface indicates the device type (mouse, pen, or touch) that caused a given pointer event.The pressure read-only property of the PointerEvent interface indicates the normalized pressure of the pointer input.float
The tangentialPressure read-only property of the PointerEvent interface represents the normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress).getTiltX()
The tiltX read-only property of the PointerEvent interface is the angle (in degrees) between the Y-Z plane of the pointer and the screen.getTiltY()
The tiltY read-only property of the PointerEvent interface is the angle (in degrees) between the X-Z plane of the pointer and the screen.int
getTwist()
The twist read-only property of the PointerEvent interface represents the clockwise rotation of the pointer (e.g., pen stylus) around its major axis, in degrees.getWidth()
The width read-only property of the PointerEvent interface represents the width of the pointer's contact geometry along the x-axis, measured in CSS pixels.Methods inherited from interface org.loboevolution.events.Event
getBubbles, getCancelable, getComposed, getComposedPath, getCurrentTarget, getDefaultPrevented, getEventPhase, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getTarget, getTimeStamp, getTrusted, getType, initEvent, initEvent, initEvent, preventDefault
Methods inherited from interface org.loboevolution.events.MouseEvent
getAltKey, getButton, getButtons, getClientX, getClientY, getCtrlKey, getMetaKey, getModifierState, getMovementX, getMovementY, getOffsetX, getOffsetY, getPageX, getPageY, getScreenX, getScreenY, getShiftKey, getX, getY, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, initMouseEvent, relatedTarget
Methods inherited from interface org.loboevolution.events.UIEvent
getDetail, getView, getWhich, initUIEvent, initUIEvent, initUIEvent, initUIEvent, initUIEvent
-
Method Details
-
getHeight
Double getHeight()The height read-only property of the PointerEvent interface represents the height of the pointer's contact geometry, along the y-axis (in CSS pixels). Depending on the source of the pointer device (for example a finger), for a given pointer, each event may produce a different value.- See Also:
-
getIsPrimary
Boolean getIsPrimary()The isPrimary read-only property of the PointerEvent interface indicates whether or not the pointer device that created the event is the primary pointer. It returns true if the pointer that caused the event to be fired is the primary device and returns false otherwise.- See Also:
-
getPointerId
Double getPointerId()The pointerId read-only property of the PointerEvent interface is an identifier assigned to a given pointer event. The identifier is unique, being different from the identifiers of all other active pointer events. Since the value may be randomly generated, it is not guaranteed to convey any particular meaning.- See Also:
-
getPointerType
String getPointerType()The pointerType read-only property of the PointerEvent interface indicates the device type (mouse, pen, or touch) that caused a given pointer event.- See Also:
-
getPressure
Double getPressure()The pressure read-only property of the PointerEvent interface indicates the normalized pressure of the pointer input.- See Also:
-
getTangentialPressure
float getTangentialPressure()The tangentialPressure read-only property of the PointerEvent interface represents the normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress).- See Also:
-
getTiltX
Integer getTiltX()The tiltX read-only property of the PointerEvent interface is the angle (in degrees) between the Y-Z plane of the pointer and the screen. This property is typically only useful for a pen/stylus pointer type.- See Also:
-
getTiltY
Integer getTiltY()The tiltY read-only property of the PointerEvent interface is the angle (in degrees) between the X-Z plane of the pointer and the screen. This property is typically only useful for a pen/stylus pointer type.- See Also:
-
getTwist
int getTwist()The twist read-only property of the PointerEvent interface represents the clockwise rotation of the pointer (e.g., pen stylus) around its major axis, in degrees.- See Also:
-
getWidth
Double getWidth()The width read-only property of the PointerEvent interface represents the width of the pointer's contact geometry along the x-axis, measured in CSS pixels. Depending on the source of the pointer device (such as a finger), for a given pointer, each event may produce a different value.- See Also:
-
getAltitudeAngle
Double getAltitudeAngle() -
getAzimuthAngle
Double getAzimuthAngle()
-