public class PointerEvent
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| PointerEventType | eventTypeThe event type. | 
| float | fThe event normalised pressure. | 
| int | pointerIdThe id of the pointer. | 
| PointerType | pointerTypeThe type of input pointer. | 
| long | tThe event timestamp. | 
| float | xThe event x coordinate. | 
| float | yThe event y coordinate. | 
| Constructor and Description | 
|---|
| PointerEvent()Default constructor. | 
| PointerEvent(PointerEventType eventType,
            float x,
            float y,
            long t,
            float f,
            PointerType pointerType,
            int pointerId)Constructs a PointerEvent | 
| Modifier and Type | Method and Description | 
|---|---|
| PointerEvent | down(float x,
    float y)Update this event to a "down" event. | 
| boolean | equals(java.lang.Object obj) | 
| PointerEvent | force(float f)Update the event pressure. | 
| int | hashCode() | 
| PointerEvent | id(int pointerId)Update the event pointer id. | 
| PointerEvent | move(float x,
    float y)Update this event to a "move" event. | 
| PointerEvent | timestamp(long t)Update the event timestamp. | 
| java.lang.String | toString() | 
| PointerEvent | type(PointerType pointerType)Update the event pointer type. | 
| PointerEvent | up(float x,
  float y)Update this event to a "up" event. | 
public PointerEventType eventType
public float x
public float y
public long t
public float f
public PointerType pointerType
public int pointerId
public PointerEvent()
public PointerEvent(PointerEventType eventType, float x, float y, long t, float f, PointerType pointerType, int pointerId)
eventType - the event typex - the event x coordinate.y - the event y coordinate.t - the event timestamp.f - the event pressure.pointerType - the event pointer type.pointerId - the event pointer identifier.public PointerEvent down(float x, float y)
x - the x coordinate location.y - the y coordinate location.public PointerEvent move(float x, float y)
x - the x coordinate location.y - the y coordinate location.public PointerEvent up(float x, float y)
x - the x coordinate location.y - the y coordinate location.public PointerEvent timestamp(long t)
t - the timestamp value.public PointerEvent force(float f)
f - the presure value.public PointerEvent type(PointerType pointerType)
pointerType - the pointert type.public PointerEvent id(int pointerId)
pointerId - the pointer id value.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object