Revision 20333 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/AreaListenerImpl.java
AreaListenerImpl.java | ||
---|---|---|
59 | 59 |
/** |
60 | 60 |
* <p>Listener for calculating the area of a polygon, defined in the associated {@link MapControl MapControl} |
61 | 61 |
* object.</p> |
62 |
*
|
|
62 |
* |
|
63 | 63 |
* <p>If the view port of the associated <code>MapControl</code> isn't projected gets the area according the |
64 | 64 |
* geographical coordinates.</p> |
65 | 65 |
* |
... | ... | |
74 | 74 |
|
75 | 75 |
/** |
76 | 76 |
* The cursor used to work with this tool listener. |
77 |
*
|
|
77 |
* |
|
78 | 78 |
* @see #getCursor() |
79 | 79 |
*/ |
80 | 80 |
private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(iarea, |
... | ... | |
86 | 86 |
protected MapControl mapCtrl; |
87 | 87 |
|
88 | 88 |
/** |
89 |
* Information about all vertexes and {@link GeneralPathX GeneralPathX}s of the polyline.
|
|
89 |
* Information about all vertexes and {@link GeneralPathX GeneralPathX}s of the polyline. |
|
90 | 90 |
*/ |
91 | 91 |
protected MeasureEvent event; |
92 | 92 |
|
... | ... | |
140 | 140 |
* |
141 | 141 |
* @return area from the vertexes stored at the measure event in real coordinates, or, if the <code>MapControl</code> |
142 | 142 |
* isn't projected, in geographical coordinates |
143 |
*
|
|
143 |
* |
|
144 | 144 |
* @see #returnCoordsArea(Double[], Double[], Point2D) |
145 | 145 |
* @see #returnGeoCArea(Double[], Double[], Point2D) |
146 | 146 |
*/ |
... | ... | |
155 | 155 |
|
156 | 156 |
/** |
157 | 157 |
* <p>Returns the area in geographical coordinates of the polygon, according the |
158 |
* <a href="http://en.wikipedia.org/wiki/Haversine_formula">Haversine function</a>.</p>
|
|
159 |
*
|
|
158 |
* <a href="http://en.wikipedia.org/wiki/Haversine_formula">Haversine function</a>.</p> |
|
159 |
* |
|
160 | 160 |
* @see Geo#sphericalPolyArea(double[], double[], int) |
161 | 161 |
*/ |
162 | 162 |
public double returnGeoCArea(Double[] xs,Double[] ys,Point2D point) { |
Also available in: Unified diff