com.maryanovsky.map.client
Class MapWidget.MapMoveAction

java.lang.Object
  extended by com.maryanovsky.map.client.MapWidget.MapMoveAction
All Implemented Interfaces:
MoveAction
Enclosing class:
MapWidget

public abstract static class MapWidget.MapMoveAction
extends Object
implements MoveAction

A MoveAction on the map widget. This is a convenience class which converts the event's target widget into 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.MapMoveAction()
           
 
Method Summary
protected abstract  void mapMoved(MapWidget mapWidget, PointView point)
          Invoked when the mouse is moved over the MapWidget without any buttons pressed.
 void mouseMoved(Widget target, PointView point)
          Converts the target widget into a MapWidget and calls mapMoved(MapWidget, PointView).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapWidget.MapMoveAction

public MapWidget.MapMoveAction()
Method Detail

mouseMoved

public void mouseMoved(Widget target,
                       PointView point)
Converts the target widget into a MapWidget and calls mapMoved(MapWidget, PointView).

Specified by:
mouseMoved in interface MoveAction
Parameters:
target - The widget that was clicked.
point - The location of the mouse cursor, point, relative to the widget's origin.

mapMoved

protected abstract void mapMoved(MapWidget mapWidget,
                                 PointView point)
Invoked when the mouse is moved over the MapWidget without any buttons pressed.