Class TouchUpEvent

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

public final class TouchUpEvent extends Object implements IInputEvent, AutoCloseable
Implementation of IInputEvent that represents a pointer being released from a touch surface.

This class contains the location of the touch point and its identifier.

  • Constructor Details Link icon

    • TouchUpEvent Link icon

      public TouchUpEvent(@NotNull Coordinate location, long id)
      Creates an event representing a pointer being released from a touch surface.
      Parameters:
      location - The pointer location, defined in device independent pixels.
      id - The touch device ID
  • 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.
    • getId Link icon

      public long getId()
      Returns the touch device ID, the finger index for example.
      Returns:
      the touch device ID, the finger index for example.