Package org.gvsig.fmap.mapcontrol.tools
Class RectangleSelectionListener
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.RectangleSelectionListener
- All Implemented Interfaces:
RectangleListener,ToolListener
Listener that selects all features of the active and vector layers which intersect with the defined
rectangle area in the associated MapControl object.
- Author:
- Vicente Caballero Navarro
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newRectangleSelectionListenerobject. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if the drawing process that this tool executes on theMapControlinstance could be canceled or not.Gets theCursorassociated to this tool.voidrectangle(EnvelopeEvent event) Called when user executes a double click with the mouse, finishing the drawn of the rectangle.
-
Constructor Details
-
RectangleSelectionListener
Creates a new
RectangleSelectionListenerobject.- Parameters:
mc- theMapControlwhere is defined the rectangle
-
-
Method Details
-
rectangle
Description copied from interface:RectangleListenerCalled 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
MapControlobject that their area intersect with the polygonal area defined in the event, will be selected.- Specified by:
rectanglein interfaceRectangleListener- Parameters:
event- mouse event and information about the rectangle defined- Throws:
BehaviorException- will be thrown when fails the process of this tool
-
getImageCursor
Description copied from interface:ToolListenerGets the
Cursorassociated to this tool.- Specified by:
getImageCursorin interfaceToolListener- Returns:
- component with the bitmap associated to this tool
-
cancelDrawing
public boolean cancelDrawing()Description copied from interface:ToolListenerDetermines if the drawing process that this tool executes on the
MapControlinstance could be canceled or not.- Specified by:
cancelDrawingin interfaceToolListener- Returns:
trueif is cancellable; otherwise returnsfalse
-