|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.tools.PolygonSelectionListener
public class PolygonSelectionListener
Listener that selects all features of the active and vector layers which intersect with the defined
polygon area in the associated MapControl object.
The selection will be produced after user finishes the creation of the polyline.
| Constructor Summary | |
|---|---|
PolygonSelectionListener(MapControl mc)
Creates a new PolygonSelectionListener object. |
|
| Method Summary | |
|---|---|
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 |
pointFixed(MeasureEvent event)
Called when user executes a mouse click and selects a vertex of the polyline. |
void |
points(MeasureEvent event)
Called when user moves the mouse after selecting a vertex of the polyline. |
void |
polylineFinished(MeasureEvent event)
Called when user executes a double click with the mouse, finishing the drawn of the polyline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolygonSelectionListener(MapControl mc)
Creates a new PolygonSelectionListener object.
mc - the MapControl where is drawn the polyline| Method Detail |
|---|
public Image getImageCursor()
ToolListenerGets the Cursor associated to this tool.
getImageCursor in interface ToolListenerpublic 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 false
public void points(MeasureEvent event)
throws BehaviorException
PolylineListenerCalled when user moves the mouse after selecting a vertex of the polyline.
Each kind of polyline listener calculates different information with the data of the
MeasureEvent, according its nature.
points in interface PolylineListenerevent - information about the mouse event, and geometry data of the polyline
BehaviorException - will be thrown when fails the process of this tool
public void pointFixed(MeasureEvent event)
throws BehaviorException
PolylineListenerCalled when user executes a mouse click and selects a vertex of the polyline.
pointFixed in interface PolylineListenerevent - information about the mouse event, and geometry data of the polyline
BehaviorException - will be thrown when fails the process of this tool
public void polylineFinished(MeasureEvent event)
throws BehaviorException
PolylineListenerCalled when user executes a double click with the mouse, finishing the drawn of the polyline.
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.
polylineFinished in interface PolylineListenerevent - information about the mouse event, and geometry data of the polyline
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 | |||||||||