Class Touch

java.lang.Object
eu.webtoolkit.jwt.Touch

public class Touch extends Object
A single finger touch of a touch event.

See Also:
  • Constructor Details

    • Touch

      public Touch(long identifier, int clientX, int clientY, int documentX, int documentY, int screenX, int screenY, int widgetX, int widgetY)
      Constructor.
  • Method Details

    • getDocument

      public Coordinates getDocument()
      Returns the touch position relative to the document.
    • getWindow

      public Coordinates getWindow()
      Returns the touch position relative to the window.

      This differs from getDocument() only when scrolling through the document.

    • getScreen

      public Coordinates getScreen()
      Returns the touch position relative to the screen.
    • getWidget

      public Coordinates getWidget()
      Returns the touch position relative to the widget.
    • getIdentifier

      public long getIdentifier()
      Returns the identifier for this touch.