Revision 20334 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/CircleMeasureListener.java
CircleMeasureListener.java | ||
---|---|---|
75 | 75 |
|
76 | 76 |
/** |
77 | 77 |
* The cursor used to work with this tool listener. |
78 |
*
|
|
78 |
* |
|
79 | 79 |
* @see #getCursor() |
80 | 80 |
*/ |
81 | 81 |
private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img, |
... | ... | |
89 | 89 |
/** |
90 | 90 |
* <p>Creates a new listener for measure circular areas.</p> |
91 | 91 |
* |
92 |
* @param mc the <code>MapControl</code> object where the measures are made
|
|
92 |
* @param mc the <code>MapControl</code> object where the measures are made |
|
93 | 93 |
*/ |
94 | 94 |
public CircleMeasureListener(MapControl mc) { |
95 | 95 |
this.mapCtrl = mc; |
... | ... | |
123 | 123 |
nf.setMaximumFractionDigits(2); |
124 | 124 |
if (PluginServices.getMainFrame() != null) |
125 | 125 |
{ |
126 |
double[] trans2Meter=MapContext.getDistanceTrans2Meter(); |
|
126 | 127 |
PluginServices.getMainFrame().getStatusBar().setMessage("4", |
127 |
"Dist:" + nf.format(dist/MapContext.CHANGEM[mapCtrl.getViewPort().getDistanceUnits()]) + "");
|
|
128 |
"Dist:" + nf.format(dist/trans2Meter[mapCtrl.getViewPort().getDistanceUnits()]) + "");
|
|
128 | 129 |
PluginServices.getMainFrame().getStatusBar().setMessage("5", |
129 |
"Total:" + nf.format(distAll/MapContext.CHANGEM[mapCtrl.getViewPort().getDistanceUnits()]) + "");
|
|
130 |
"Total:" + nf.format(distAll/trans2Meter[mapCtrl.getViewPort().getDistanceUnits()]) + "");
|
|
130 | 131 |
} |
131 | 132 |
} |
132 | 133 |
|
Also available in: Unified diff