Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java @ 611:854312c0528c
#21 Newly created projects cannot be opened twice.
flys-client/trunk@2225 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 24 Jun 2011 09:20:22 +0000 |
parents | ea2191b1299d |
children | e59f2569558e |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Thu Jun 23 17:46:08 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Fri Jun 24 09:20:22 2011 +0000 @@ -307,7 +307,10 @@ Axis xAxis = chartInfo.getXAxis(0); Axis yAxis = chartInfo.getYAxis(0); + GWT.log("ZOOM X"); double[] x = zoomAxis(xAxis, factor); + + GWT.log("ZOOM Y"); double[] y = zoomAxis(yAxis, factor); zoom[0] = x[0]; @@ -324,12 +327,16 @@ double min = axis.getFrom(); double max = axis.getTo(); + GWT.log("ZOOM CURRENT: " + min + " - " + max); + double add = (max - min) / 100 * factor; add = add < 0 ? (-1) * add : add; min -= add; max += add; + GWT.log("ZOOM TO: " + min + " - " + max); + return computeZoom(axis, min, max); }