public class CircleSelectionListener extends AbstractCircleListener
Listener that selects all features of the active, available and vector layers
which intersect with the defined circle area in the associated
MapControl object.
| Constructor and Description |
|---|
CircleSelectionListener(MapControl mc)
Creates a new listener for selecting circular areas.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the
MapControl
instance could be canceled or not. |
void |
circle(MeasureEvent event)
Called when user defines a circular area.
|
java.awt.Cursor |
getCursor() |
java.awt.Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
circleFinishedpublic CircleSelectionListener(MapControl mc)
Creates a new listener for selecting circular areas.
mc - the MapControl object where the measures are madepublic void circle(MeasureEvent event) throws BehaviorException
CircleListenerCalled when user defines a circular area.
event - information about the mouse event, and geometry data related with the operation doneBehaviorException - will be thrown when fails the process of this toolpublic java.awt.Cursor getCursor()
public boolean cancelDrawing()
ToolListenerDetermines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
true if is cancellable; otherwise returns falsepublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.