|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.tools.RectangleSelectionListener
public class RectangleSelectionListener
Listener that selects all features of the active and vector layers which intersect with the defined
rectangle area in the associated MapControl object.
| Constructor Summary | |
|---|---|
RectangleSelectionListener(MapControl mc)
Creates a new RectangleSelectionListener object. |
|
| Method Summary | |
|---|---|
boolean |
cancelDrawing()
Determines if the drawing process that this tool executes on the MapControl
instance could be canceled or not. |
java.awt.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RectangleSelectionListener(MapControl mc)
Creates a new RectangleSelectionListener object.
mc - the MapControl where is defined the rectangle| Method Detail |
|---|
public boolean cancelDrawing()
ToolListenerDetermines if the drawing process that this tool executes on the MapControl
instance could be canceled or not.
cancelDrawing in interface ToolListenertrue if is cancellable; otherwise returns falsepublic java.awt.Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListener
public void rectangle(EnvelopeEvent event)
throws BehaviorException
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 MapControl object that
their area intersect with the polygonal area defined in the event, will be selected.
rectangle in interface RectangleListenerevent - mouse event and information about the rectangle defined
BehaviorException - will be thrown when fails the process of this tool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||