# HG changeset patch # User Felix Wolfsteller # Date 1349361798 -7200 # Node ID 0189d6b0973ab813415e5cf37d8000a588f96ddf # Parent 52a280532c2fffc6e486e9dc251b608fb6ed4aaf Cosmetics, refac. diff -r 52a280532c2f -r 0189d6b0973a flys-client/ChangeLog --- 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 + + * 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 * flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java: diff -r 52a280532c2f -r 0189d6b0973a flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/MousePositionPanel.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 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.