Package com.luciad.input.touch
Class TouchDownEvent
java.lang.Object
com.luciad.input.touch.TouchDownEvent
- All Implemented Interfaces:
IInputEvent
,AutoCloseable
Implementation of
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 Summary
ConstructorDescriptionTouchDownEvent
(Coordinate location, long id) Creates an event representing a point being pressed on a touch surface. -
Method Summary
-
Constructor Details
-
TouchDownEvent
Creates an event representing a point being pressed on a touch surface.- Parameters:
location
- The touch point location, defined in device independent pixelsid
- The touch point identifier
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getLocation
Returns the location of the event.It is expressed in device independent pixel coordinates with top-left corner of the map being the (0,0) position.
- Returns:
- the location of the event.
-
getId
public long getId()Returns the touch point identifier, such as an index used per finger for example.- Returns:
- the touch point identifier.
-