public final class TouchTapEvent extends ClickEvent implements AutoCloseable
ClickEvent
class for touch events.Constructor and Description |
---|
TouchTapEvent(Coordinate location,
long tapCount,
long touchPointCount,
ModifierKeys modifierKeys)
Creates a click event for a touch device.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
long |
getTouchPointCount()
|
getClickCount, getLocation, getModifierKeys
public TouchTapEvent(@NotNull Coordinate location, long tapCount, long touchPointCount, @NotNull ModifierKeys modifierKeys)
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.protected void finalize()
finalize
in class ClickEvent
public void close()
close
in interface AutoCloseable
close
in class ClickEvent
public long getTouchPointCount()
TouchGestureRecognizer
does not support tap events with more than one touch point.