H
- handler typepublic abstract class PointerEvent<H extends com.google.gwt.event.shared.EventHandler>
extends com.google.gwt.event.dom.client.MouseEvent<H>
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_MOUSE |
static String |
TYPE_PEN |
static String |
TYPE_TOUCH |
static String |
TYPE_UNKNOWN |
Constructor and Description |
---|
PointerEvent() |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Gets the height of the contact geometry of the pointer in CSS pixels.
|
int |
getPointerId()
Gets a unique identifier for the pointer that caused this event.
|
String |
getPointerType()
Gets the type of the pointer device that caused this event.
|
double |
getPressure()
Gets the pressure of the pointer input as a value in the range of [0, 1]
where 0 and 1 represent the minimum and maximum, respectively.
|
double |
getTiltX()
Gets the angle between the Y-Z plane and the plane containing both the
transducer and the Y axis.
|
double |
getTiltY()
Gets the angle between the X-Z plane and the plane containing both the
transducer and the X axis.
|
int |
getWidth()
Gets the width of the contact geometry of the pointer in CSS pixels.
|
boolean |
isPrimary()
Indicates whether the pointer is the primary pointer of this type.
|
getClientX, getClientY, getNativeButton, getRelativeX, getRelativeY, getScreenX, getScreenY, getX, getY
isAltKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
assertLive, dispatch, getSource, isLive, kill, revive
public static final String TYPE_UNKNOWN
public static final String TYPE_TOUCH
public static final String TYPE_PEN
public static final String TYPE_MOUSE
public final int getPointerId()
public final int getWidth()
public final int getHeight()
public final double getPressure()
public final double getTiltX()
public final double getTiltY()
public final String getPointerType()
TYPE_UNKNOWN
,
TYPE_TOUCH
,
TYPE_PEN
,
TYPE_MOUSE
public final boolean isPrimary()
Copyright © 2018 Vaadin Ltd. All rights reserved.