Revision 20098 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/AreaListener.java

View differences:

AreaListener.java
53 53

  
54 54

  
55 55
/**
56
 * DOCUMENT ME!
56
 * <p>Listener for calculating the area of a polygon, defined in the associated {@link MapControl MapControl}
57
 *  object.</p>
58
 * <p>Moves the extent of the associated {@link MapControl MapControl} object
59
 *  according the movement between the initial and final points of the line determined by the movement
60
 *  dragged with the third button of the mouse.</p>
61
 * 
62
 * <p>Updates the status bar of the main frame of the application with the current area.</p>
57 63
 *
64
 * @see AreaListenerImpl
65
 * 
58 66
 * @author Vicente Caballero Navarro
59 67
 */
60 68
public class AreaListener extends AreaListenerImpl {
61 69
	/**
62
     * Crea un nuevo AreaListener.
63
     *
64
     * @param vp DOCUMENT ME!
65
     */
70
 	 * <p>Creates a new listener for calculating the area of a polygon and displaying it at the status bar
71
 	 *  of the main frame of the application.</p>
72
	 *
73
	 * @param mc the <code>MapControl</code> where is calculated the area
74
	 */
66 75
    public AreaListener(MapControl mc) {
67 76
    	super(mc);
68 77
    }
69 78

  
70
    /**
71
     * DOCUMENT ME!
72
     *
73
     * @param event DOCUMENT ME!
79
    /*
80
     * (non-Javadoc)
81
     * @see com.iver.cit.gvsig.fmap.tools.AreaListenerImpl#points(com.iver.cit.gvsig.fmap.tools.Events.MeasureEvent)
74 82
     */
75 83
    public void points(MeasureEvent event) {
76 84
        this.event = event;
......
114 122
                                        event.getYs()[event.getYs().length - 2].doubleValue()))/Math.pow(MapContext.CHANGEM[distanceUnits],2)) + "");
115 123
        }
116 124
    }
117

  
118

  
119 125
}

Also available in: Unified diff