org.gvsig.fmap.mapcontrol.tools.Listeners
Interface ToolListener

All Known Subinterfaces:
CircleListener, PanListener, PointListener, PolylineListener, RectangleListener
All Known Implementing Classes:
AbstractPointListener, AbstractToolListener, AreaListenerImpl, MeasureListenerImpl, PanListenerImpl, PointSelectionListener, PolygonSelectionListener, RectangleSelectionListener, SelectImageListenerImpl, ZoomInListenerImpl, ZoomOutListenerImpl, ZoomOutRightButtonListener

public interface ToolListener

User can interact with a MapControl instance, working with a tool that applies changes on it processing the events produced by the current Behavior of MapControl.

The process that the tool applies on the MapControl is a consequence of the mouse actions that user has done on that area.

Only some tool listener can be cancelled.

Author:
Vicente Caballero Navarro

Method Summary
 boolean cancelDrawing()
          Determines if the drawing process that this tool executes on the MapControl instance could be canceled or not.
 Image getImageCursor()
          Gets the Cursor associated to this tool.
 

Method Detail

getImageCursor

Image getImageCursor()

Gets the Cursor associated to this tool.

Returns:
component with the bitmap associated to this tool

cancelDrawing

boolean cancelDrawing()

Determines if the drawing process that this tool executes on the MapControl instance could be canceled or not.

Returns:
true if is cancellable; otherwise returns false


Copyright © 2004-2013 gvSIG. All Rights Reserved.