|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.gwt.core.client.JavaScriptObject com.google.gwt.dom.client.Touch
public class Touch
Class representing touches. See Safari Touch Documentation
Constructor Summary | |
---|---|
protected |
Touch()
|
Method Summary | |
---|---|
int |
getClientX()
Gets the touch x-position within the browser window's client area. |
int |
getClientY()
Gets the touch y-position within the browser window's client area. |
int |
getIdentifier()
Gets a unique identifier for this touch. |
int |
getPageX()
Gets the touch x-position within the browser document. |
int |
getPageY()
Gets the touch y-position within the browser document. |
int |
getRelativeX(Element target)
Gets the touch x-position relative to a given element. |
int |
getRelativeY(Element target)
Gets the touch y-position relative to a given element. |
int |
getScreenX()
Gets the touch x-position on the user's display. |
int |
getScreenY()
Gets the touch y-position on the user's display. |
EventTarget |
getTarget()
Gets the target element for the current touch. |
Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
---|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Touch()
Method Detail |
---|
public final int getClientX()
public final int getClientY()
public final int getIdentifier()
public final int getPageX()
public final int getPageY()
public final int getRelativeX(Element target)
target
- the element whose coordinate system is to be used
public final int getRelativeY(Element target)
target
- the element whose coordinate system is to be used
public final int getScreenX()
public final int getScreenY()
public final EventTarget getTarget()
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |