Package com.luciad.input.touch
Class TouchTapEvent
java.lang.Object
com.luciad.input.ClickEvent
com.luciad.input.touch.TouchTapEvent
- All Implemented Interfaces:
IInputEvent,AutoCloseable
Specialization of the
ClickEvent class for touch events.-
Constructor Summary
ConstructorsConstructorDescriptionTouchTapEvent(Coordinate location, long tapCount, long touchPointCount, ModifierKeys modifierKeys) Creates a click event for a touch device. -
Method Summary
Methods inherited from class com.luciad.input.ClickEvent
getClickCount, getLocation, getModifierKeys
-
Constructor Details
-
TouchTapEvent
public TouchTapEvent(@NotNull Coordinate location, long tapCount, long touchPointCount, @NotNull ModifierKeys modifierKeys) Creates a click event for a touch device.- Parameters:
location- The location of the event, defined in device independent pixelstapCount- The number of taps.touchPointCount- How many touch points are used in the gesture.modifierKeys- The modifiers of the event.
-
-
Method Details
-
finalize
protected void finalize()- Overrides:
finalizein classClickEvent
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classClickEvent
-
getTouchPointCount
public long getTouchPointCount()Returns the amount of touch points that are used.- Note
- : currently,
TouchGestureRecognizerdoes not support tap events with more than one touch point.
- Returns:
- the amount of touch points that are used.
-