Class PolygonBehavior
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
org.gvsig.fmap.mapcontrol.tools.Behavior.PolylineBehavior
org.gvsig.fmap.mapcontrol.tools.Behavior.PolygonBehavior
- All Implemented Interfaces:
IBehavior
Behavior that permits user to draw a polygon by its vertexes on the image of
the associated MapControl using a
PolylineListener.
- Author:
- Vicente Caballero Navarro, Pablo Piqueras Bartolomé
-
Field Summary
Fields inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.PolylineBehavior
arrayX, arrayY, isClicked, listenerFields inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, geomManager, LOG, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new behavior for drawing a polygon by its vertexes. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidpaintComponent(MapControlDrawer mapControlDrawer) Method executed in real-time, when user is working with a tool on the associatedMapControlobject, repainting theMapControl's image.Methods inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.PolylineBehavior
addPoint, changeLastPoint, drawPolyLine, getListener, setListenerMethods inherited from class org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior
clean, createArc, createArc, createArc, createCircle, createEllipse, createPoint, createPoint, getImageCursor, getMapControl, getUseSnapping, isMyButton, isMyButton, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved, paintComponent, resetMyButton, setMapControl, setUseSnapping
-
Constructor Details
-
PolygonBehavior
Creates a new behavior for drawing a polygon by its vertexes.
- Parameters:
ali- tool listener used to permit this object to work with the associatedMapControl
-
-
Method Details
-
paintComponent
Description copied from interface:IBehaviorMethod executed in real-time, when user is working with a tool on the associated
MapControlobject, repainting theMapControl's image.Returns immediately in all cases, even if the complete image has not yet been loaded.
This method will be implemented according to the specific nature of each behavior, and its extra and particular features.
- Specified by:
paintComponentin interfaceIBehavior- Overrides:
paintComponentin classPolylineBehavior- See Also:
-
mouseClicked
- Specified by:
mouseClickedin interfaceIBehavior- Overrides:
mouseClickedin classPolylineBehavior- Throws:
BehaviorException- any exception processing the action associated to a mouse clicked event, by theIBehaviorobject- See Also:
-
mouseMoved
- Specified by:
mouseMovedin interfaceIBehavior- Overrides:
mouseMovedin classPolylineBehavior- Throws:
BehaviorException- any exception processing the action associated to a mouse moved event, by theIBehaviorobject- See Also:
-
mouseDragged
- Specified by:
mouseDraggedin interfaceIBehavior- Overrides:
mouseDraggedin classPolylineBehavior- Throws:
BehaviorException- any exception processing the action associated to a mouse dragged event, by theIBehaviorobject- See Also:
-