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 Link icon

    • TouchPoint Link icon

      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 Link icon

    • getLocation Link icon

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object