Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.maryanovsky.map.client.actions.mouse
Class DragPanAction

    java.lang.Object
      com.maryanovsky.map.client.actions.MapAction<HasAllDragHandlers>
          com.maryanovsky.map.client.actions.mouse.DragPanAction

All Implemented Interfaces:
  EventHandler, DragCancelHandler, DragEndHandler, DragMoveHandler, DragStartHandler

    public class DragPanAction

extends MapAction<HasAllDragHandlers>
implements DragStartHandler, DragMoveHandler, DragEndHandler, DragCancelHandler

Pans the map as it is dragged by the mouse.

Field Summary

Fields inherited from class com.maryanovsky.map.client.actions.MapAction
`isAnimated, mapWidget`

Constructor Summary
`DragPanAction(MapWidget mapWidget)` Creates a new `DragPanAction` for panning the specified map widget.

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

### DragPanAction

    public DragPanAction(MapWidget mapWidget)

  Creates a new `DragPanAction` for panning the specified map widget.

Method Detail

### registerWith

    public HandlerRegistration registerWith(HasAllDragHandlers dragSource)

  Registers for handling drag events from the specified source.

  Specified by:
    `registerWith` in class `MapAction<HasAllDragHandlers>`

### onDragStart

    public void onDragStart(DragStartEvent evt)

  Invoked when a drag gesture starts.

  Specified by:
    `onDragStart` in interface `DragStartHandler`

### onDragMove

    public void onDragMove(DragMoveEvent evt)

  Invoked when a drag gesture is in progress.

  Specified by:
    `onDragMove` in interface `DragMoveHandler`

### onDragEnd

    public void onDragEnd(DragEndEvent evt)

  Invoked when a drag gesture ends.

  Specified by:
    `onDragEnd` in interface `DragEndHandler`

### onDragCancel

    public void onDragCancel(DragCancelEvent evt)

  Invoked when a drag gesture is cancelled.

  Specified by:
    `onDragCancel` in interface `DragCancelHandler`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD