changeset 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 2e43542e6a11
children c16c622ba2f3
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Fri Dec 11 09:05:17 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Fri Dec 11 09:42:54 2009 +0000
@@ -1,3 +1,8 @@
+2009-12-11  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	* src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java: Fade out
+	  gridlines of range axis in charts if there are more than one axis.
+
 2009-12-11  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* src/main/resources/lang/artifactMessages.properties,
--- 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