com.maryanovsky.gwtutils.client.iphone.ui.gesture
Class NativeGestureEvent
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.NativeEvent
com.maryanovsky.gwtutils.client.iphone.ui.gesture.NativeGestureEvent
public class NativeGestureEvent
- extends NativeEvent
A JavaScript overlay type for native gesture events.
- Author:
- Maryanovsky Alexander
|
Constructor Summary |
protected |
NativeGestureEvent()
Protected constructor, required for JavaScript overlay types. |
|
Method Summary |
double |
getRotation()
Returns the rotation induced by this event, in degrees, where clockwise
rotation is represented by a positive value and counter-clockwise by a
negative value. |
double |
getScale()
Returns the scale change induced by this event. |
| Methods inherited from class com.google.gwt.dom.client.NativeEvent |
getAltKey, getButton, getClientX, getClientY, getCtrlKey, getCurrentEventTarget, getEventTarget, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRelatedEventTarget, getScreenX, getScreenY, getShiftKey, getString, getType, preventDefault, stopPropagation |
NativeGestureEvent
protected NativeGestureEvent()
- Protected constructor, required for JavaScript overlay types.
getRotation
public final double getRotation()
- Returns the rotation induced by this event, in degrees, where clockwise
rotation is represented by a positive value and counter-clockwise by a
negative value.
getScale
public final double getScale()
- Returns the scale change induced by this event. The value returned
represents the distance between the two finger, as a fraction of the
initial distance. This way, a value greater than 1.0 represents a zoom-in
gesture, while a value smaller than 1.0, a zoom-out gesture.