|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gvsig.fmap.mapcontrol.tools.PointSelectionListener
public class PointSelectionListener
Listener that selects all features of the active, and vector layers of the associated MapControl
that their area intersects with the point selected by a single click of any button of the mouse.
| Field Summary | |
|---|---|
protected MapControl |
mapCtrl
Reference to the MapControl object that uses. |
| Constructor Summary | |
|---|---|
PointSelectionListener(MapControl mc)
Creates a new PointSelectionListener 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 |
point(PointEvent event)
Called when one click is pressed on the associated MapControl, or the location of the cursor
of the mouse has changed on it. |
void |
pointDoubleClick(PointEvent event)
Called when a double click is pressed on the associated MapControl. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MapControl mapCtrl
MapControl object that uses.
| Constructor Detail |
|---|
public PointSelectionListener(MapControl mc)
Creates a new PointSelectionListener object.
mc - the MapControl where will be applied the changes| Method Detail |
|---|
public void point(PointEvent event)
throws BehaviorException
PointListenerCalled when one click is pressed on the associated MapControl, or the location of the cursor
of the mouse has changed on it.
point in interface PointListenerevent - mouse event with the coordinates of the point selected on the associated MapControl
BehaviorException - will be thrown when fails the process of this toolpublic 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 pointDoubleClick(PointEvent event)
throws BehaviorException
PointListenerCalled when a double click is pressed on the associated MapControl.
pointDoubleClick in interface PointListenerevent - mouse event and the coordinates of the point selected on the associated MapControl
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 | |||||||||