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

All Superinterfaces:
ToolListener
All Known Implementing Classes:
AreaListenerImpl, 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
 void pointFixed(MeasureEvent event)
          Called when user executes a mouse click and selects a vertex of the polyline.
 void points(MeasureEvent event)
          Called when user moves the mouse after selecting a vertex of the polyline.
 void polylineFinished(MeasureEvent event)
          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 Detail

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

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

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


Copyright © 2014 gvSIG Association. All Rights Reserved.