Class AreaListener
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl
org.gvsig.app.project.documents.view.toolListeners.AreaListener
- All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener,org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
public class AreaListener
extends org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl
Listener for calculating the area of a polygon, defined in the associated MapControl
object.
Moves the extent of the associated MapControl object
according the movement between the initial and final points of the line determined by the movement
dragged with the third button of the mouse.
Updates the status bar of the main frame of the application with the current area.
- Author:
- Vicente Caballero Navarro
- See Also:
-
Field Summary
Fields inherited from class org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl
event, mapCtrl -
Constructor Summary
ConstructorsConstructorDescriptionAreaListener(org.gvsig.fmap.mapcontrol.MapControl mc) Creates a new listener for calculating the area of a polygon and displaying it at the status bar of the main frame of the application. -
Method Summary
Modifier and TypeMethodDescriptionvoidpoints(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event) Methods inherited from class org.gvsig.fmap.mapcontrol.tools.AreaListenerImpl
cancelDrawing, getImageCursor, main, pointFixed, polylineFinished, returnArea, returnCoordsArea, returnGeoCArea
-
Constructor Details
-
AreaListener
public AreaListener(org.gvsig.fmap.mapcontrol.MapControl mc) Creates a new listener for calculating the area of a polygon and displaying it at the status bar of the main frame of the application.
- Parameters:
mc- theMapControlwhere is calculated the area
-
-
Method Details
-
points
public void points(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event) - Specified by:
pointsin interfaceorg.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener- Overrides:
pointsin classorg.gvsig.fmap.mapcontrol.tools.AreaListenerImpl
-