|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.map.client.MapWidget.MapDragAction
public abstract static class MapWidget.MapDragAction
A DragAction 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 methods only if the
MapWidget is already displaying a (non null)
map.
| Constructor Summary | |
|---|---|
MapWidget.MapDragAction()
|
|
| Method Summary | |
|---|---|
protected abstract void |
mapDragEnded(MapWidget mapWidget,
PointView point,
PointView offset)
Invoked when the map stops being dragged. |
protected abstract void |
mapDragged(MapWidget mapWidget,
PointView point,
PointView offset)
Invoked when the map is being dragged. |
protected abstract void |
mapPressed(MapWidget mapWidget,
PointView point)
Invoked on mouse-press on the map. |
protected abstract void |
mapReleased(MapWidget mapWidget,
PointView point)
Invoked on mouse-release on the map, when the drag action did not occur. |
void |
mouseDragEnded(Widget target,
PointView point,
PointView offset)
Converts the target widget to a MapWidget and calls
mapDragEnded(MapWidget, PointView, PointView). |
void |
mouseDragged(Widget target,
PointView point,
PointView offset)
Converts the target widget to a MapWidget and calls
mapDragged(MapWidget, PointView, PointView). |
void |
mousePressed(Widget target,
PointView point)
Converts the target widget to a MapWidget and calls
mapPressed(MapWidget, PointView). |
void |
mouseReleased(Widget target,
PointView point)
Converts the target widget to a MapWidget and calls
mapReleased(MapWidget, PointView). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapWidget.MapDragAction()
| Method Detail |
|---|
public void mousePressed(Widget target,
PointView point)
MapWidget and calls
mapPressed(MapWidget, PointView).
mousePressed in interface DragActiontarget - The widget where the mouse was pressed.point - The point where the mouse was pressed.
public void mouseReleased(Widget target,
PointView point)
MapWidget and calls
mapReleased(MapWidget, PointView).
mouseReleased in interface DragActiontarget - The widget where the mouse-drag started.point - The point where the mouse was pressed and released.
public void mouseDragged(Widget target,
PointView point,
PointView offset)
MapWidget and calls
mapDragged(MapWidget, PointView, PointView).
mouseDragged in interface DragActiontarget - The widget where the mouse was dragged.point - The current location of the mouse pointer.offset - The offset from the point where the mouse was pressed
to the current point.
public void mouseDragEnded(Widget target,
PointView point,
PointView offset)
MapWidget and calls
mapDragEnded(MapWidget, PointView, PointView).
mouseDragEnded in interface DragActiontarget - The widget where the mouse was dragged.point - The point where the mouse was released.offset - The offset from the point where the mouse was pressed to
the current point.
protected abstract void mapPressed(MapWidget mapWidget,
PointView point)
protected abstract void mapReleased(MapWidget mapWidget,
PointView point)
protected abstract void mapDragged(MapWidget mapWidget,
PointView point,
PointView offset)
protected abstract void mapDragEnded(MapWidget mapWidget,
PointView point,
PointView offset)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||