|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maryanovsky.map.client.actions.MapAction<HasAllDragHandlers>
com.maryanovsky.map.client.actions.touch.InertialDragPanAction
public class InertialDragPanAction
Pans the map as the user drags his finger across the map widget, continuing the panning after the user lifted his finger, as if the map had inertia over a surface with friction.
Field Summary |
---|
Fields inherited from class com.maryanovsky.map.client.actions.MapAction |
---|
isAnimated, mapWidget |
Constructor Summary | |
---|---|
InertialDragPanAction(MapWidget mapWidget,
int decelerationDuration)
Creates a new InertialDragPanAction for the specified map widget
with the specified deceleration duration, in milliseconds. |
Method Summary | |
---|---|
void |
onDragCancel(DragCancelEvent evt)
Invoked when a drag gesture is cancelled. |
void |
onDragEnd(DragEndEvent evt)
Invoked when a drag gesture ends. |
void |
onDragMove(DragMoveEvent evt)
Invoked when a drag gesture is in progress. |
void |
onDragStart(DragStartEvent evt)
Invoked when a drag gesture starts. |
HandlerRegistration |
registerWith(HasAllDragHandlers dragSource)
Registers for handling drag events from the specified source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InertialDragPanAction(MapWidget mapWidget, int decelerationDuration)
InertialDragPanAction
for the specified map widget
with the specified deceleration duration, in milliseconds.
mapWidget
- The target map widget.decelerationDuration
- The time it takes the map to decelerate to
full stop, in milliseconds.Method Detail |
---|
public HandlerRegistration registerWith(HasAllDragHandlers dragSource)
registerWith
in class MapAction<HasAllDragHandlers>
public void onDragStart(DragStartEvent evt)
onDragStart
in interface DragStartHandler
public void onDragMove(DragMoveEvent evt)
onDragMove
in interface DragMoveHandler
public void onDragEnd(DragEndEvent evt)
onDragEnd
in interface DragEndHandler
public void onDragCancel(DragCancelEvent evt)
onDragCancel
in interface DragCancelHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |