Mercurial > dive4elements > gnv-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
357:25e4724aa504 | 358:2f7a28f211c7 |
---|---|
15 import java.util.Date; | 15 import java.util.Date; |
16 import java.util.Iterator; | 16 import java.util.Iterator; |
17 import java.util.Locale; | 17 import java.util.Locale; |
18 | 18 |
19 import org.apache.log4j.Logger; | 19 import org.apache.log4j.Logger; |
20 | |
21 import org.jfree.chart.ChartTheme; | |
20 | 22 |
21 import de.intevation.gnv.chart.Chart; | 23 import de.intevation.gnv.chart.Chart; |
22 import de.intevation.gnv.chart.ChartLabels; | 24 import de.intevation.gnv.chart.ChartLabels; |
23 import de.intevation.gnv.chart.HorizontalProfileChart; | 25 import de.intevation.gnv.chart.HorizontalProfileChart; |
24 import de.intevation.gnv.geobackend.base.Result; | 26 import de.intevation.gnv.geobackend.base.Result; |
89 | 91 |
90 | 92 |
91 @Override | 93 @Override |
92 protected Chart getChart( | 94 protected Chart getChart( |
93 ChartLabels chartLables, | 95 ChartLabels chartLables, |
96 ChartTheme theme, | |
94 Collection parameters, | 97 Collection parameters, |
95 Collection measurements, | 98 Collection measurements, |
96 Collection dates, | 99 Collection dates, |
97 Collection result, | 100 Collection result, |
98 Locale locale, | 101 Locale locale, |
111 return chart; | 114 return chart; |
112 | 115 |
113 log.info("Chart not in cache yet."); | 116 log.info("Chart not in cache yet."); |
114 chart = new HorizontalProfileChart( | 117 chart = new HorizontalProfileChart( |
115 chartLables, | 118 chartLables, |
116 createStyle(), | 119 theme, |
117 parameters, | 120 parameters, |
118 measurements, | 121 measurements, |
119 dates, | 122 dates, |
120 result, | 123 result, |
121 null, | 124 null, |