Class PointBehavior
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
org.gvsig.fmap.mapcontrol.tools.Behavior.PointBehavior
- All Implemented Interfaces:
IBehavior
- Direct Known Subclasses:
TwoLinesBehavior
Behavior that permits user to select a point with a double click mouse action, on the associated
MapControl using a PointListener.
- Author:
- Vicente Caballero Navarro
-
Field Summary
Fields inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, geomManager, LOG, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionPointBehavior(PointListener l, int mouseButton) Creates a new behavior for selecting a point. -
Method Summary
Modifier and TypeMethodDescriptionGets theToolListenerused by this behavior to perform actions on the associatedMapControlobject.voidvoidsetListener(ToolListener listener) Sets a tool listener to work with theMapControlusing this behavior.Methods inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
clean, createArc, createArc, createArc, createCircle, createEllipse, createPoint, createPoint, getImageCursor, getMapControl, getUseSnapping, isMyButton, isMyButton, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, mouseWheelMoved, paintComponent, paintComponent, resetMyButton, setMapControl, setUseSnapping
-
Constructor Details
-
PointBehavior
Creates a new behavior for selecting a point.
- Parameters:
l- listener used to permit this object to work with the associatedMapControl
-
PointBehavior
-
-
Method Details
-
mousePressed
- Specified by:
mousePressedin interfaceIBehavior- Overrides:
mousePressedin classBehavior- Throws:
BehaviorException- any exception processing the action associated to a mouse pressed event, by theIBehaviorobject- See Also:
-
setListener
Sets a tool listener to work with the
MapControlusing this behavior.- Parameters:
listener- aPointListenerobject for this behavior
-
getListener
Description copied from interface:IBehaviorGets the
ToolListenerused by this behavior to perform actions on the associatedMapControlobject.- Specified by:
getListenerin interfaceIBehavior- Specified by:
getListenerin classBehavior- Returns:
- the
ToolListenerused by this behavior
-