eu.webtoolkit.jwt
Class Touch

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

public class Touch
extends java.lang.Object

A single finger touch of a touch event.

See Also:
WTouchEvent

Constructor Summary
Touch(int identifier, int clientX, int clientY, int documentX, int documentY, int screenX, int screenY, int widgetX, int widgetY)
          Constructor.
 
Method Summary
 Coordinates getDocument()
          Returns the touch position relative to the document.
 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 Detail

Touch

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

Method Detail

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.