Interface PolylineListener
- All Superinterfaces:
ToolListener
- All Known Implementing Classes:
AreaListenerImpl,BaseMapTool,MeasureListenerImpl,PolygonSelectionListener
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 TypeMethodDescriptionvoidpointFixed(MeasureEvent event) Called when user executes a mouse click and selects a vertex of the polyline.voidpoints(MeasureEvent event) Called when user moves the mouse after selecting a vertex of the polyline.voidpolylineFinished(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 Details
-
points
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
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
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
MapControlobject 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
-