Class TouchLongPressEvent

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

public final class TouchLongPressEvent extends Object implements IInputEvent, AutoCloseable
Implementation of IInputEvent representing a long press touch event.

This class contains the location of the touch input and the status of the event.

  • Constructor Details Link icon

    • TouchLongPressEvent Link icon

      public TouchLongPressEvent(@NotNull Coordinate location, @NotNull EventStatus status)
      Creates a long press event.
      Parameters:
      location - the long press location, defined in device independent pixels
      status - the status of the event.
  • Method Details Link icon

    • finalize Link icon

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

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getLocation Link icon

      @NotNull public Coordinate getLocation()
      Returns the position 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 position of the event.
    • getStatus Link icon

      @NotNull public EventStatus getStatus()
      Returns the status of the event.
      Returns:
      the status of the event.