Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/timeseries/TimeSeriesOutputState.java @ 342:bb1afbbd93e4
Read x-axis label for timeseries charts from ressources, instead of a hard coded string in source.
gnv-artifacts/trunk@409 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 11 Dec 2009 08:44:46 +0000 |
parents | e964a3d8f7bc |
children | 2f7a28f211c7 |
comparison
equal
deleted
inserted
replaced
341:8937fd620e55 | 342:bb1afbbd93e4 |
---|---|
91 private static Logger log = Logger | 91 private static Logger log = Logger |
92 .getLogger(TimeSeriesOutputState.class); | 92 .getLogger(TimeSeriesOutputState.class); |
93 | 93 |
94 private static List<TimeGap> timeGapDefinitions = null; | 94 private static List<TimeGap> timeGapDefinitions = null; |
95 | 95 |
96 protected String domainLable = "Zeit [UTC]"; | 96 protected String domainLable = "chart.timeseries.title.xaxis"; |
97 | 97 |
98 protected String featureValuesName = "featureid"; | 98 protected String featureValuesName = "featureid"; |
99 protected String parameterValuesName = "parameterid"; | 99 protected String parameterValuesName = "parameterid"; |
100 protected String measuremenValueName = "measurementid"; | 100 protected String measuremenValueName = "measurementid"; |
101 protected String dateValueName = "dateid"; | 101 protected String dateValueName = "dateid"; |
228 Collection dates = this.getDates(uuid); | 228 Collection dates = this.getDates(uuid); |
229 | 229 |
230 ChartLabels chartLables = new ChartLabels( | 230 ChartLabels chartLables = new ChartLabels( |
231 createChartTitle(locale, uuid), | 231 createChartTitle(locale, uuid), |
232 createChartSubtitle(locale, uuid), | 232 createChartSubtitle(locale, uuid), |
233 domainLable | 233 RessourceFactory.getInstance().getRessource( |
234 locale, | |
235 domainLable, | |
236 domainLable | |
237 ) | |
234 ); | 238 ); |
235 | 239 |
236 String exportFormat = getExportFormat(mimeType); | 240 String exportFormat = getExportFormat(mimeType); |
237 | 241 |
238 // TODO Remove this and parse input data | 242 // TODO Remove this and parse input data |
277 getMeasurements(uuid), | 281 getMeasurements(uuid), |
278 getDates(uuid), | 282 getDates(uuid), |
279 new ChartLabels( | 283 new ChartLabels( |
280 createChartTitle(locale, uuid), | 284 createChartTitle(locale, uuid), |
281 createChartSubtitle(locale, uuid), | 285 createChartSubtitle(locale, uuid), |
282 domainLable), | 286 RessourceFactory.getInstance().getRessource( |
287 locale, | |
288 domainLable, | |
289 domainLable | |
290 ) | |
291 ), | |
283 uuid, | 292 uuid, |
284 "A4", | 293 "A4", |
285 true, | 294 true, |
286 locale, | 295 locale, |
287 linesVisible, | 296 linesVisible, |
313 getMeasurements(uuid), | 322 getMeasurements(uuid), |
314 getDates(uuid), | 323 getDates(uuid), |
315 new ChartLabels( | 324 new ChartLabels( |
316 createChartTitle(locale, uuid), | 325 createChartTitle(locale, uuid), |
317 createChartSubtitle(locale, uuid), | 326 createChartSubtitle(locale, uuid), |
318 domainLable | 327 RessourceFactory.getInstance().getRessource( |
328 locale, | |
329 domainLable, | |
330 domainLable | |
331 ) | |
319 ), | 332 ), |
320 uuid, | 333 uuid, |
321 locale, | 334 locale, |
322 width, | 335 width, |
323 height, | 336 height, |