Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java @ 178:9bcf315f57e4
Added Name of FIS to the Title of Charts
gnv-artifacts/trunk@222 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Thu, 15 Oct 2009 14:19:40 +0000 |
parents | 08b8b79b30ff |
children | f2c76f35da5a |
comparison
equal
deleted
inserted
replaced
177:08b8b79b30ff | 178:9bcf315f57e4 |
---|---|
27 | 27 |
28 import au.com.bytecode.opencsv.CSVWriter; | 28 import au.com.bytecode.opencsv.CSVWriter; |
29 import de.intevation.artifactdatabase.Config; | 29 import de.intevation.artifactdatabase.Config; |
30 import de.intevation.artifactdatabase.XMLUtils; | 30 import de.intevation.artifactdatabase.XMLUtils; |
31 import de.intevation.artifacts.CallMeta; | 31 import de.intevation.artifacts.CallMeta; |
32 import de.intevation.artifacts.PreferredLocale; | |
33 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | |
32 import de.intevation.gnv.chart.ChartFactory; | 34 import de.intevation.gnv.chart.ChartFactory; |
33 import de.intevation.gnv.chart.ChartLabels; | 35 import de.intevation.gnv.chart.ChartLabels; |
34 import de.intevation.gnv.chart.ChartStyle; | 36 import de.intevation.gnv.chart.ChartStyle; |
35 import de.intevation.gnv.chart.exception.TechnicalChartException; | 37 import de.intevation.gnv.chart.exception.TechnicalChartException; |
36 import de.intevation.gnv.geobackend.base.Result; | 38 import de.intevation.gnv.geobackend.base.Result; |
120 .getParameters(); | 122 .getParameters(); |
121 Collection<KeyValueDescibeData> measurements = this | 123 Collection<KeyValueDescibeData> measurements = this |
122 .getMeasurements(); | 124 .getMeasurements(); |
123 ChartStyle chartStyle = this | 125 ChartStyle chartStyle = this |
124 .creatStyle(chartWidth, chartHeight); | 126 .creatStyle(chartWidth, chartHeight); |
125 ChartLabels chartLables = new ChartLabels(this | 127 ChartLabels chartLables = new ChartLabels(this.getFisName(callMeta.getLanguages())+" "+this |
126 .getSelectedFeatureName(), this.domainLable); | 128 .getSelectedFeatureName(), this.domainLable); |
127 this.createChart(outputStream, parameters, measurements, | 129 this.createChart(outputStream, parameters, measurements, |
128 chartStyle, chartLables, uuid); | 130 chartStyle, chartLables, uuid); |
129 } else if (outputMode.equalsIgnoreCase("csv")) { | 131 } else if (outputMode.equalsIgnoreCase("csv")) { |
130 log.debug("CSV-File will be generated."); | 132 log.debug("CSV-File will be generated."); |
276 5d, 5d, 5d, 5d); | 278 5d, 5d, 5d, 5d); |
277 Dimension lChartSize = new Dimension(witdh, height); | 279 Dimension lChartSize = new Dimension(witdh, height); |
278 return new ChartStyle(Color.white, new Color(230, 230, 230), | 280 return new ChartStyle(Color.white, new Color(230, 230, 230), |
279 Color.white, Color.white, true, true, lInsets, lChartSize); | 281 Color.white, Color.white, true, true, lInsets, lChartSize); |
280 } | 282 } |
283 | |
284 protected String getFisName(PreferredLocale[] preferredLocales){ | |
285 String returnValue = ""; | |
286 InputData inputData = this.inputData.get("fisname"); | |
287 if (inputData != null){ | |
288 returnValue = RessourceFactory.getInstance() | |
289 .getRessource(preferredLocales, | |
290 inputData.getValue(), | |
291 inputData.getValue()); | |
292 } | |
293 return returnValue; | |
294 } | |
281 | 295 |
282 protected Collection<KeyValueDescibeData> getParameters() { | 296 protected Collection<KeyValueDescibeData> getParameters() { |
283 return this.getCollection(parameterValuesName); | 297 return this.getCollection(parameterValuesName); |
284 } | 298 } |
285 | 299 |