Class MeasureListener
java.lang.Object
org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl
org.gvsig.app.project.documents.view.toolListeners.MeasureListener
- All Implemented Interfaces:
org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener,org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener
public class MeasureListener
extends org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl
Listener for calculating distances using vertexes of a polyline, defined in
the associated MapControl object, and displaying that
information at the status bar of the application's main frame.
Calculates and displays:
- Distance of the last segment of the polyline.
- Accumulated distance of all segments of the polyline.
- Author:
- Vicente Caballero Navarro
- See Also:
-
Field Summary
Fields inherited from class org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl
mapCtrl -
Constructor Summary
ConstructorsConstructorDescriptionMeasureListener(org.gvsig.fmap.mapcontrol.MapControl mc) Creates a new listener for calculating distances using points of a polyline. -
Method Summary
Modifier and TypeMethodDescriptionvoidpoints(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event) Methods inherited from class org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl
cancelDrawing, getImageCursor, pointFixed, polylineFinished
-
Constructor Details
-
MeasureListener
public MeasureListener(org.gvsig.fmap.mapcontrol.MapControl mc) Creates a new listener for calculating distances using points of a polyline.
- Parameters:
mc- theMapControlwhere is calculated the length
-
-
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.MeasureListenerImpl
-