public final class TouchDownEvent extends Object implements IInputEvent, AutoCloseable
IInputEvent
that represents a pointer (typically a finger) being pressed on a touch surface.
This class contains the location of the touch point and an identifier assigned to it for as long as the touch point remains pressed.
Constructor and Description |
---|
TouchDownEvent(Coordinate location,
long id)
Creates an event representing a point being pressed on a touch surface.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
long |
getId() |
Coordinate |
getLocation() |
public TouchDownEvent(@NotNull Coordinate location, long id)
location
- The touch point location, defined in device independent pixelsid
- The touch point identifierpublic void close()
close
in interface AutoCloseable
@NotNull public Coordinate getLocation()
public long getId()