changeset 4038:0189d6b0973a

Cosmetics, refac.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 04 Oct 2012 16:43:18 +0200
parents 52a280532c2f
children ba2f0bff0697
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu Oct 04 16:41:40 2012 +0200
+++ b/flys-client/ChangeLog	Thu Oct 04 16:43:18 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-04	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java:
+	  Cosmetics, removed unused member, simplified getTransformer.
+
 2012-10-04	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java	Thu Oct 04 16:41:40 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.java	Thu Oct 04 16:43:18 2012 +0200
@@ -19,20 +19,18 @@
  */
 public class MousePositionPanel extends HLayout implements MouseMoveHandler {
 
+    /** Is associated to a ChartTab. */
     protected ChartOutputTab chartTab;
 
-    protected NumberFormat nf;
-
     protected HLayout xLayout;
     protected ArrayList<HLayout> yLayouts;
 
+
     public MousePositionPanel(ChartOutputTab chartTab) {
         super();
 
         this.chartTab = chartTab;
 
-        nf = NumberFormat.getDecimalFormat();
-
         chartTab.getChartPanel().addMouseMoveHandler(this);
 
         initLayout();
@@ -123,7 +121,7 @@
             Canvas xLabel = xLayout.getMember(1);
             Canvas yLabel = yLayout.getMember(1);
 
-            double[] xy    = transformer.transform(x,y);
+            double[] xy    = transformer.transform(x, y);
             String[] xyStr = transformer.format(new Number[] {
                 new Double(xy[0]), new Double(xy[1]) });
             // Set the coordinates.

http://dive4elements.wald.intevation.org