com.maryanovsky.gwtutils.client.ui.touch.gestures.pinch
Class PinchChangeEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
com.maryanovsky.gwtutils.client.event.SyntheticEvent<H,E>
com.maryanovsky.gwtutils.client.ui.touch.gestures.SyntheticTouchGestureEvent<PinchChangeHandler,TouchMoveEvent>
com.maryanovsky.gwtutils.client.ui.touch.gestures.pinch.PinchChangeEvent
public class PinchChangeEvent
- extends SyntheticTouchGestureEvent<PinchChangeHandler,TouchMoveEvent>
Represents a pinch change event.
- Author:
- Maryanovsky Alexander
Methods inherited from class com.google.web.bindery.event.shared.Event |
setSource, toDebugString, toString |
PinchChangeEvent
public PinchChangeEvent(TouchMoveEvent evt,
double scale)
- Creates a new
PinchChangeEvent
from the specified source
TouchMoveEvent
and scale.
- Parameters:
evt
- The touch move event that triggered this event.scale
- The factor by which the user changed the distance between
his fingers. Values greater than 1 imply he moved his fingers further
apart; values smaller than 1, closer together.
getScale
public double getScale()
- Returns the factor by which the user changed the distance between
his fingers. Values greater than 1 imply he moved his fingers further
apart; values smaller than 1, closer together.
getType
public static GwtEvent.Type<PinchChangeHandler> getType()
- Returns the event type associated with pinch change events.
getAssociatedType
public GwtEvent.Type<PinchChangeHandler> getAssociatedType()
- Returns the event type associated with pinch change events.
- Overrides:
getAssociatedType
in class GwtEvent<PinchChangeHandler>
dispatch
protected void dispatch(PinchChangeHandler handler)
- Dispatches the event to the handler.
- Specified by:
dispatch
in class GwtEvent<PinchChangeHandler>