Class TouchPoint

java.lang.Object
com.luciad.input.touch.TouchPoint

public final class TouchPoint extends Object
Touch point that results from a user touch interaction.
  • Constructor Details

    • TouchPoint

      public TouchPoint(@NotNull Coordinate location, @NotNull TouchPointState state, long id)
      Creates a touch point.
      Parameters:
      location - The location of the touch point, defined in device independent pixels.
      state - The status of the touch point.
      id - The touch device ID, such as an index assigned for each finger for example.
  • Method Details

    • getLocation

      @NotNull public Coordinate getLocation()
      The screen location of the touch point, expressed in device independent pixels.
    • getState

      @NotNull public TouchPointState getState()
      The current TouchPointState for this touch point.
    • getId

      public long getId()
      The unique identifier of this touch point, valid until this touch point is released.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object