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.
Modifier and Type | Method and Description |
---|---|
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.
|
cancelDrawing, getImageCursor
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.
event
- information about the mouse event, and geometry data of the polylineBehaviorException
- will be thrown when fails the process of this toolvoid pointFixed(MeasureEvent event) throws BehaviorException
Called when user executes a mouse click and selects a vertex of the polyline.
event
- information about the mouse event, and geometry data of the polylineBehaviorException
- will be thrown when fails the process of this toolvoid 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.
event
- information about the mouse event, and geometry data of the polylineBehaviorException
- will be thrown when fails the process of this tool