Class Touch

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

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

See Also:
WTouchEvent
  • Constructor Summary

    Constructors
    Constructor Description
    Touch​(long identifier, int clientX, int clientY, int documentX, int documentY, int screenX, int screenY, int widgetX, int widgetY)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    Coordinates getDocument()
    Returns the touch position relative to the document.
    long getIdentifier()
    Returns the identifier for this touch.
    Coordinates getScreen()
    Returns the touch position relative to the screen.
    Coordinates getWidget()
    Returns the touch position relative to the widget.
    Coordinates getWindow()
    Returns the touch position relative to the window.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.