com.maryanovsky.map.client.actions.touch
Class TapZoomInAction
java.lang.Object
com.maryanovsky.map.client.actions.MapAction<HasTapHandlers>
com.maryanovsky.map.client.actions.touch.TapZoomInAction
- All Implemented Interfaces:
- EventHandler, TapHandler
public class TapZoomInAction
- extends MapAction<HasTapHandlers>
- implements TapHandler
Zooms the map in when the user taps the map widget.
- Author:
- Maryanovsky Alexander
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TapZoomInAction
public TapZoomInAction(MapWidget mapWidget,
boolean isAnimated)
- Creates a new
TapZoomInAction
for the specified map widget, and
with optionally animated zoom-in transition.
- Parameters:
mapWidget
- The target map widget.isAnimated
- Whether the zoom-in transition is animated.
registerWith
public HandlerRegistration registerWith(HasTapHandlers tapSource)
- Registers for handling tap events from the specified source.
- Specified by:
registerWith
in class MapAction<HasTapHandlers>
onTap
public void onTap(TapEvent evt)
- Invoked when the user taps the screen.
- Specified by:
onTap
in interface TapHandler