es.prodevelop.gvsig.mobile.gui.tool.listener.imterfaces
Interface ToolListener

All Known Subinterfaces:
PointToolListener, RectangleToolListener
All Known Implementing Classes:
CenterOnPointListener, DistanceAreaListener, InfoPointListener, PanListener, PointCoordinatesListener, PointSelectionPointListener, RectSelectionRectListener, ZoomInRectListener

public interface ToolListener

Tool listener are the ones which perform the operations on the map (MapCOntrol). Behavior classes gather information from the java event system and notify the listeners when something relevant happens. Whether an event is relevant or not depends also on the type of tool.

Author:
jldominguez
See Also:
Behavior

Method Summary
 boolean cancelDrawing()
          Allows the tool listener to cancel the current drawing process.
 java.awt.Cursor getCursor()
          Allows the tool listener to set a new cursor while the associated tool is active.
 void setMapControl(MapControl mc)
          Sets the MapControl object.
 

Method Detail

getCursor

public java.awt.Cursor getCursor()
Allows the tool listener to set a new cursor while the associated tool is active.

Returns:
the cursor icon to be used when this tool is active.

cancelDrawing

public boolean cancelDrawing()
Allows the tool listener to cancel the current drawing process. Currently unsued.

Returns:
this method will return true when the drawing has been cancelled (cancel request accepted)

setMapControl

public void setMapControl(MapControl mc)
Sets the MapControl object. Listeners will have to do some kind of request to the map, depending on the tool.

Parameters:
mc - the MapControl object to be used by this listener.