Class TouchTapEvent

java.lang.Object
com.luciad.input.ClickEvent
com.luciad.input.touch.TouchTapEvent
All Implemented Interfaces:
IInputEvent, AutoCloseable

public final class TouchTapEvent extends ClickEvent implements AutoCloseable
Specialization of the ClickEvent class for touch events.
  • Constructor Details Link icon

    • TouchTapEvent Link icon

      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 pixels
      tapCount - The number of taps.
      touchPointCount - How many touch points are used in the gesture.
      modifierKeys - The modifiers of the event.
  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class ClickEvent
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
      Overrides:
      close in class ClickEvent
    • getTouchPointCount Link icon

      public long getTouchPointCount()
      Returns the amount of touch points that are used.

      Note
      : currently, TouchGestureRecognizer does not support tap events with more than one touch point.
      Returns:
      the amount of touch points that are used.