Interface PolylineListener

All Superinterfaces:
ToolListener
All Known Implementing Classes:
AreaListenerImpl, BaseMapTool, MeasureListenerImpl, PolygonSelectionListener

public interface PolylineListener extends ToolListener

Interface for all tools that reply for a MeasureEvent produced in the associated MapControl object, as a consequence of a 2D polyline drawn by the mouse.

Author:
Vicente Caballero Navarro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when user executes a mouse click and selects a vertex of the polyline.
    void
    Called when user moves the mouse after selecting a vertex of the polyline.
    void
    Called when user executes a double click with the mouse, finishing the drawn of the polyline.

    Methods inherited from interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener

    cancelDrawing, getImageCursor
  • Method Details

    • points

      void points(MeasureEvent event) throws BehaviorException

      Called when user moves the mouse after selecting a vertex of the polyline.

      Each kind of polyline listener calculates different information with the data of the MeasureEvent, according its nature.

      Parameters:
      event - information about the mouse event, and geometry data of the polyline
      Throws:
      BehaviorException - will be thrown when fails the process of this tool
    • pointFixed

      void pointFixed(MeasureEvent event) throws BehaviorException

      Called when user executes a mouse click and selects a vertex of the polyline.

      Parameters:
      event - information about the mouse event, and geometry data of the polyline
      Throws:
      BehaviorException - will be thrown when fails the process of this tool
    • polylineFinished

      void polylineFinished(MeasureEvent event) throws BehaviorException

      Called when user executes a double click with the mouse, finishing the drawn of the polyline.

      All features of the active and vector layers of the associated MapControl object that their area intersect with the polygonal area defined in the event, will be selected.

      Parameters:
      event - information about the mouse event, and geometry data of the polyline
      Throws:
      BehaviorException - will be thrown when fails the process of this tool