com.maryanovsky.map.client.actions.mouse
Class ClickZoomInAction
java.lang.Object
com.maryanovsky.map.client.actions.MapAction<HasClickHandlers>
com.maryanovsky.map.client.actions.mouse.ClickZoomInAction
- All Implemented Interfaces:
- EventHandler, ClickHandler
public class ClickZoomInAction
- extends MapAction<HasClickHandlers>
- implements ClickHandler
Zooms in and recenters 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 |
ClickZoomInAction
public ClickZoomInAction(MapWidget mapWidget,
boolean isAnimated)
- Creates a new
ClickZoomInAction
for panning the specified map
widget.
- Parameters:
mapWidget
- The target map widget.isAnimated
- Whether the zoom-in 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