comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapPositionPanel.java @ 2451:c1292aab6aa9

Issue 553. Cut the last 3 digits. This solves the problem desrcibed in Issue 553 and is now the same behaviour as in module 'new map'. flys-client/trunk@4134 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 08 Mar 2012 15:33:42 +0000
parents d73f503f2465
children
comparison
equal deleted inserted replaced
2450:0537faaa9848 2451:c1292aab6aa9
1 package de.intevation.flys.client.client.ui.map; 1 package de.intevation.flys.client.client.ui.map;
2
3 import com.google.gwt.i18n.client.NumberFormat;
2 4
3 import com.smartgwt.client.types.Alignment; 5 import com.smartgwt.client.types.Alignment;
4 import com.smartgwt.client.widgets.Label; 6 import com.smartgwt.client.widgets.Label;
5 import com.smartgwt.client.widgets.layout.HLayout; 7 import com.smartgwt.client.widgets.layout.HLayout;
6 8
60 }); 62 });
61 } 63 }
62 64
63 65
64 protected void setX(double x) { 66 protected void setX(double x) {
65 this.x.setContents(String.valueOf(x)); 67 NumberFormat f = NumberFormat.getFormat("#0.0000");
68 this.x.setContents(f.format(x).toString());
66 } 69 }
67 70
68 71
69 protected void setY(double y) { 72 protected void setY(double y) {
70 this.y.setContents(String.valueOf(y)); 73 NumberFormat f = NumberFormat.getFormat("#0.0000");
74 this.y.setContents(f.format(y).toString());
71 } 75 }
72 } 76 }
73 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 77 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org