Interface ToolListener

All Known Subinterfaces:
AngleListener, CircleListener, EllipseListener, PanListener, PointListener, PolylineListener, RectangleListener
All Known Implementing Classes:
AbstractCircleListener, AbstractPointListener, AbstractToolListener, AreaListenerImpl, BaseMapTool, 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

    Modifier and Type
    Method
    Description
    boolean
    Determines if the drawing process that this tool executes on the MapControl instance could be canceled or not.
    Gets the Cursor associated to this tool.
  • Method Details

    • 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