org.gvsig.fmap.mapcontrol.tools.Listeners
Interface RectangleListener

All Superinterfaces:
ToolListener
All Known Implementing Classes:
RectangleSelectionListener, ZoomInListenerImpl

public interface RectangleListener
extends ToolListener

Interface specialized for tools that reply for a RectangleEvent produced in the associated MapControl object, as a consequence of a 2D rectangle drawn by the mouse.

Author:
Vicente Caballero Navarro

Method Summary
 void rectangle(EnvelopeEvent event)
          Called when user executes a double click with the mouse, finishing the drawn of the rectangle.
 
Methods inherited from interface org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
cancelDrawing, getImageCursor
 

Method Detail

rectangle

void rectangle(EnvelopeEvent event)
               throws BehaviorException

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.

Parameters:
event - mouse event and information about the rectangle defined
Throws:
BehaviorException - will be thrown when fails the process of this tool


Copyright © 2014 gvSIG Association. All Rights Reserved.