Mercurial > dive4elements > gnv-client
diff 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 |
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java Thu Oct 15 12:43:46 2009 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/timeseries/TimeSeriesOutputTransition.java Thu Oct 15 14:19:40 2009 +0000 @@ -29,6 +29,8 @@ import de.intevation.artifactdatabase.Config; import de.intevation.artifactdatabase.XMLUtils; import de.intevation.artifacts.CallMeta; +import de.intevation.artifacts.PreferredLocale; +import de.intevation.gnv.artifacts.ressource.RessourceFactory; import de.intevation.gnv.chart.ChartFactory; import de.intevation.gnv.chart.ChartLabels; import de.intevation.gnv.chart.ChartStyle; @@ -122,7 +124,7 @@ .getMeasurements(); ChartStyle chartStyle = this .creatStyle(chartWidth, chartHeight); - ChartLabels chartLables = new ChartLabels(this + ChartLabels chartLables = new ChartLabels(this.getFisName(callMeta.getLanguages())+" "+this .getSelectedFeatureName(), this.domainLable); this.createChart(outputStream, parameters, measurements, chartStyle, chartLables, uuid); @@ -278,6 +280,18 @@ return new ChartStyle(Color.white, new Color(230, 230, 230), Color.white, Color.white, true, true, lInsets, lChartSize); } + + protected String getFisName(PreferredLocale[] preferredLocales){ + String returnValue = ""; + InputData inputData = this.inputData.get("fisname"); + if (inputData != null){ + returnValue = RessourceFactory.getInstance() + .getRessource(preferredLocales, + inputData.getValue(), + inputData.getValue()); + } + return returnValue; + } protected Collection<KeyValueDescibeData> getParameters() { return this.getCollection(parameterValuesName);