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

    • TouchUpEvent

      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

    • finalize

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

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

      @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

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