diff gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.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 ec95d3248576
children 6491000407dd
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java	Tue Dec 15 15:14:21 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileOutputState.java	Tue Dec 15 15:30:25 2009 +0000
@@ -18,6 +18,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.HorizontalProfileChart;
@@ -91,6 +93,7 @@
     @Override
     protected Chart getChart(
         ChartLabels  chartLables,
+        ChartTheme   theme,
         Collection   parameters,
         Collection   measurements,
         Collection   dates,
@@ -113,7 +116,7 @@
         log.info("Chart not in cache yet.");
         chart = new HorizontalProfileChart(
             chartLables,
-            createStyle(),
+            theme,
             parameters,
             measurements,
             dates,

http://dive4elements.wald.intevation.org