com.maryanovsky.map.client.actions.desktop
Class ClickPanAction
java.lang.Object
com.maryanovsky.map.client.actions.MapAction<HasClickHandlers>
com.maryanovsky.map.client.actions.desktop.ClickPanAction
- All Implemented Interfaces:
- EventHandler, ClickHandler
public class ClickPanAction
- extends MapAction<HasClickHandlers>
- implements ClickHandler
Recenters (pans) the map to the clicked location.
- Author:
- Maryanovsky Alexander
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClickPanAction
public ClickPanAction(MapWidget mapWidget,
boolean isAnimated)
- Creates a new
ClickPanAction for panning the specified map
widget.
- Parameters:
mapWidget - The target map widget.isAnimated - Whether the panning transition is animated.
registerWith
public HandlerRegistration registerWith(HasClickHandlers clickSource)
- Registers for handling click events from the specified source.
- Specified by:
registerWith in class MapAction<HasClickHandlers>
onClick
public void onClick(ClickEvent evt)
- Invoked when a mouse button is clicked.
- Specified by:
onClick in interface ClickHandler