|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maryanovsky.map.client.actions.MapAction<HasAllWheelScrollHandlers>
com.maryanovsky.map.client.actions.mouse.WheelScrollZoomAction
public class WheelScrollZoomAction
Zooms the map in when the user scrolls the mouse-wheel up and zooms it out when he scrolls the mouse-wheel down.
Field Summary |
---|
Fields inherited from class com.maryanovsky.map.client.actions.MapAction |
---|
isAnimated, mapWidget |
Constructor Summary | |
---|---|
WheelScrollZoomAction(MapWidget mapWidget,
boolean isAnimated)
Creates a new WheelScrollZoomAction for panning the specified map
widget. |
Method Summary | |
---|---|
void |
onWheelScrollDown(WheelScrollDownEvent evt)
Invoked when the mouse wheel is scrolled down. |
void |
onWheelScrollUp(WheelScrollUpEvent evt)
Invoked when the mouse wheel is scrolled up. |
HandlerRegistration |
registerWith(HasAllWheelScrollHandlers wheelScrollSource)
Registers for handling wheel-scroll 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 |
---|
public WheelScrollZoomAction(MapWidget mapWidget, boolean isAnimated)
WheelScrollZoomAction
for panning the specified map
widget.
mapWidget
- The target map widget.isAnimated
- Whether the zoom transition is animated.Method Detail |
---|
public HandlerRegistration registerWith(HasAllWheelScrollHandlers wheelScrollSource)
registerWith
in class MapAction<HasAllWheelScrollHandlers>
public void onWheelScrollUp(WheelScrollUpEvent evt)
onWheelScrollUp
in interface WheelScrollUpHandler
public void onWheelScrollDown(WheelScrollDownEvent evt)
onWheelScrollDown
in interface WheelScrollDownHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |