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:
  • MeasureListenerImpl
  • Field Summary

    Fields inherited from class org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl

    mapCtrl
  • Constructor Summary

    Constructors
    Constructor
    Description
    MeasureListener(org.gvsig.fmap.mapcontrol.MapControl mc)
    Creates a new listener for calculating distances using points of a polyline.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    points(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event)
     

    Methods inherited from class org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl

    cancelDrawing, getImageCursor, pointFixed, polylineFinished

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - the MapControl where is calculated the length
  • Method Details

    • points

      public void points(org.gvsig.fmap.mapcontrol.tools.Events.MeasureEvent event)
      Specified by:
      points in interface org.gvsig.fmap.mapcontrol.tools.Listeners.PolylineListener
      Overrides:
      points in class org.gvsig.fmap.mapcontrol.tools.MeasureListenerImpl