com.maryanovsky.map.client.actions.mouse
Class ClickZoomInAction

java.lang.Object
  extended by com.maryanovsky.map.client.actions.MapAction<HasClickHandlers>
      extended by 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

Field Summary
 
Fields inherited from class com.maryanovsky.map.client.actions.MapAction
isAnimated, mapWidget
 
Constructor Summary
ClickZoomInAction(MapWidget mapWidget, boolean isAnimated)
          Creates a new ClickZoomInAction for panning the specified map widget.
 
Method Summary
 void onClick(ClickEvent evt)
          Invoked when a mouse button is clicked.
 HandlerRegistration registerWith(HasClickHandlers clickSource)
          Registers for handling click 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

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.
Method Detail

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