diff gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java @ 344:44adf8918155

Fade out range axis gridlines in charts if there are more than one axis. gnv-artifacts/trunk@411 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 11 Dec 2009 09:42:54 +0000
parents e964a3d8f7bc
children 4ac3c1c1c060
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java	Fri Dec 11 09:05:17 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java	Fri Dec 11 09:42:54 2009 +0000
@@ -69,6 +69,8 @@
         theme.apply(chart);
         initData();
 
+        adjustPlot((XYPlot)chart.getPlot());
+
         return chart;
     }
 
@@ -149,6 +151,12 @@
     }
 
 
+    protected void adjustPlot(XYPlot plot) {
+        if (plot.getRangeAxisCount() > 1)
+            plot.setRangeGridlinesVisible(false);
+    }
+
+
     protected void localizeRangeAxis(Axis axis, Locale locale) {
         if (locale == null)
             return;

http://dive4elements.wald.intevation.org