public class RectangleSelectionListener extends Object implements RectangleListener
Listener that selects all features of the active and vector layers which intersect with the defined
rectangle area in the associated MapControl
object.
Constructor and Description |
---|
RectangleSelectionListener(MapControl mc)
Creates a new
RectangleSelectionListener object. |
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. |
Image |
getImageCursor()
Gets the
Cursor associated to this tool. |
void |
rectangle(EnvelopeEvent event)
Called when user executes a double click with the mouse, finishing the
drawn of the rectangle.
|
public RectangleSelectionListener(MapControl mc)
Creates a new RectangleSelectionListener
object.
mc
- the MapControl
where is defined the rectanglepublic void rectangle(EnvelopeEvent event) throws BehaviorException
RectangleListener
Called when user executes a double click with the mouse, finishing the drawn of the rectangle.
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.
rectangle
in interface RectangleListener
event
- mouse event and information about the rectangle definedBehaviorException
- will be thrown when fails the process of this toolpublic Image getImageCursor()
ToolListener
Gets the Cursor
associated to this tool.
getImageCursor
in interface ToolListener
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