public class CircleSelectionListener extends Object implements CircleListener
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.
|
Cursor |
getCursor() |
Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
public 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
CircleListener
Called when user defines a circular area.
circle
in interface CircleListener
event
- information about the mouse event, and geometry data related with the operation doneBehaviorException
- will be thrown when fails the process of this toolpublic Cursor getCursor()
public boolean cancelDrawing()
ToolListener
Determines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing
in interface ToolListener
true
if is cancellable; otherwise returns false
public Image getImageCursor()
ToolListener
Gets the Cursor
associated to this tool.
getImageCursor
in interface ToolListener