diff flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java @ 718:f3fd8c9b7f51

#157 Computed discharge curve charts always have a lower bound set to 0. flys-artifacts/trunk@2192 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 21 Jun 2011 18:10:49 +0000
parents be4709640aac
children 7ca4a287cd0e
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Tue Jun 21 17:39:29 2011 +0000
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java	Tue Jun 21 18:10:49 2011 +0000
@@ -133,7 +133,7 @@
 
             if (i == 0) {
                 ValueAxis xaxis = plot.getDomainAxis();
-                zoom(plot, xaxis, ranges[0], xrange);
+                zoomX(plot, xaxis, ranges[0], xrange);
             }
 
             ValueAxis yaxis = plot.getRangeAxis(i);
@@ -142,11 +142,21 @@
                 continue;
             }
 
-            zoom(plot, yaxis, ranges[1], yrange);
+            zoomY(plot, yaxis, ranges[1], yrange);
         }
     }
 
 
+    protected boolean zoomX(XYPlot plot, ValueAxis axis, Range range, Range x) {
+        return zoom(plot, axis, range, x);
+    }
+
+
+    protected boolean zoomY(XYPlot plot, ValueAxis axis, Range range, Range x) {
+        return zoom(plot, axis, range, x);
+    }
+
+
     /**
      * Zooms the x axis to the range specified in the attribute document.
      *

http://dive4elements.wald.intevation.org