public final class TouchPoint extends Object
Constructor and Description |
---|
TouchPoint(Coordinate location,
TouchPointState state,
long id)
Creates a touch point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
long |
getId()
The unique identifier of this touch point, valid until this touch point is released.
|
Coordinate |
getLocation()
The screen location of the touch point, expressed in device independent pixels.
|
TouchPointState |
getState()
The current TouchPointState for this touch point.
|
int |
hashCode() |
public TouchPoint(@NotNull Coordinate location, @NotNull TouchPointState state, long id)
location
- The location of the touch point, defined in device independent pixels.state
- The status of the touch point.id
- The touch device ID, such as an index assigned for each finger for example.@NotNull public Coordinate getLocation()
@NotNull public TouchPointState getState()
public long getId()