Revision 20100 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/MeasureListener.java

View differences:

MeasureListener.java
52 52

  
53 53

  
54 54
/**
55
 * DOCUMENT ME!
55
 * <p>Listener for calculating distances using vertexes of a polyline, defined in the associated {@link MapControl MapControl}
56
 *  object, and displaying that information at the status bar of the application's main frame.</p>
57
 *  
58
 * <p>Calculates and displays:
59
 *  <ul>
60
 *   <li>Distance of the last segment of the polyline.</li>
61
 *   <li>Accumulated distance of all segments of the polyline.</li>
62
 *  </ul>
63
 * </p>
56 64
 *
65
 * @see MeasureListenerImpl
66
 *
57 67
 * @author Vicente Caballero Navarro
58 68
 */
59 69
public class MeasureListener extends MeasureListenerImpl {
60 70
	/**
61
	 * DOCUMENT ME!
71
	 * <p>Creates a new listener for calculating distances using points of a polyline.</p>
62 72
	 *
63
	 * @param mc
73
	 * @param mc the <code>MapControl</code> where is calculated the length
64 74
	 */
65 75
	public MeasureListener(MapControl mc) {
66 76
		super(mc);
67 77
	}
68 78

  
69
	/**
70
	 * DOCUMENT ME!
71
	 *
72
	 * @param event DOCUMENT ME!
79
	/*
80
	 * (non-Javadoc)
81
	 * @see com.iver.cit.gvsig.fmap.tools.MeasureListenerImpl#points(com.iver.cit.gvsig.fmap.tools.Events.MeasureEvent)
73 82
	 */
74 83
	public void points(MeasureEvent event) {
75 84
		double dist = 0;

Also available in: Unified diff