diff gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java @ 358:2f7a28f211c7

Fetch ChartTheme from CallContext instead of creating it each time before creating a chart. gnv-artifacts/trunk@431 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 15 Dec 2009 15:30:25 +0000
parents 2e43542e6a11
children 6491000407dd
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java	Tue Dec 15 15:14:21 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/vertical/VerticalProfileOutputState.java	Tue Dec 15 15:30:25 2009 +0000
@@ -8,6 +8,8 @@
 
 import org.apache.log4j.Logger;
 
+import org.jfree.chart.ChartTheme;
+
 import de.intevation.gnv.chart.Chart;
 import de.intevation.gnv.chart.ChartLabels;
 import de.intevation.gnv.chart.VerticalProfileChart;
@@ -40,6 +42,7 @@
     @Override
     protected Chart getChart(
         ChartLabels chartLables,
+        ChartTheme  theme,
         Collection  parameters,
         Collection  measurements,
         Collection  dates,
@@ -62,7 +65,7 @@
         log.info("Chart not in cache yet.");
         chart = new VerticalProfileChart(
             chartLables,
-            this.createStyle(),
+            theme,
             parameters,
             measurements,
             dates,

http://dive4elements.wald.intevation.org