changeset 351:4ac3c1c1c060

Stabilized color of lines in charts. Exports (pdf, svg, png) will look like the chart in gui. gnv-artifacts/trunk@424 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 15 Dec 2009 10:13:09 +0000
parents 4e6aa2a8c4c0
children 24c21a720aa5
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Dec 14 15:56:20 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Tue Dec 15 10:13:09 2009 +0000
@@ -1,3 +1,12 @@
+2009-12-15  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue102
+	
+	* src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java:
+	  Reset 'nextColor' at the beginning of chart creation. Now, color of lines
+	  in charts are stable, which means, that an export will look like the chart
+	  in the gui itself.
+
 2009-12-14  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue101
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java	Mon Dec 14 15:56:20 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/AbstractXYLineChart.java	Tue Dec 15 10:13:09 2009 +0000
@@ -58,6 +58,7 @@
 
     public JFreeChart generateChart() {
         log.debug("generate XYLineChart");
+        nextColor = 0;
 
         if (chart != null)
             return chart;

http://dive4elements.wald.intevation.org