|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.map.client.MapWidget.MapWheelAction
public abstract static class MapWidget.MapWheelAction
A WheelAction on the map widget. This is a convenience class
which converts the event's target widget to a MapWidget.
Additionally, it makes sure to invoke the delegate method only if the
MapWidget is already displaying a (non null)
map.
| Constructor Summary | |
|---|---|
MapWidget.MapWheelAction()
|
|
| Method Summary | |
|---|---|
protected abstract void |
mapScrolled(MapWidget mapWidget,
PointView point,
MouseWheelVelocity velocity)
Invoked when the map is scrolled. |
protected abstract void |
mapScrolledDown(MapWidget mapWidget,
PointView point)
Invoked when the map is scrolled down. |
protected abstract void |
mapScrolledUp(MapWidget mapWidget,
PointView point)
Invoked when the map is scrolled up. |
void |
mouseWheelScrolled(Widget target,
PointView point,
MouseWheelVelocity velocity)
Converts the target widget to a MapWidget and calls
mapScrolled(MapWidget, PointView, MouseWheelVelocity). |
void |
mouseWheelScrolledDown(Widget target,
PointView point)
Converts the target widget to a MapWidget and calls
mapScrolledDown(MapWidget, PointView). |
void |
mouseWheelScrolledUp(Widget target,
PointView point)
Converts the target widget to a MapWidget and calls
mapScrolledUp(MapWidget, PointView). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapWidget.MapWheelAction()
| Method Detail |
|---|
public void mouseWheelScrolledUp(Widget target,
PointView point)
MapWidget and calls
mapScrolledUp(MapWidget, PointView).
mouseWheelScrolledUp in interface WheelActiontarget - The widget over which the wheel was scrolled.point - The location of the mouse, relative to the widget, at the
time it was scrolled.
public void mouseWheelScrolledDown(Widget target,
PointView point)
MapWidget and calls
mapScrolledDown(MapWidget, PointView).
mouseWheelScrolledDown in interface WheelActiontarget - The widget over which the wheel was scrolled.point - The location of the mouse, relative to the widget, at the
time it was scrolled.
public void mouseWheelScrolled(Widget target,
PointView point,
MouseWheelVelocity velocity)
MapWidget and calls
mapScrolled(MapWidget, PointView, MouseWheelVelocity).
mouseWheelScrolled in interface WheelActiontarget - The widget over which the wheel was scrolled.point - The location of the mouse, relative to the widget, at the
time it was scrolled.velocity - The velocity of the scroll.
protected abstract void mapScrolledUp(MapWidget mapWidget,
PointView point)
protected abstract void mapScrolledDown(MapWidget mapWidget,
PointView point)
protected abstract void mapScrolled(MapWidget mapWidget,
PointView point,
MouseWheelVelocity velocity)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||