changeset 654:a6081d76fa1c

Fixed broken titles in 'Profilschnitt'-charts (issue195). gnv-artifacts/trunk@746 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 08 Mar 2010 10:51:01 +0000
parents 987584605a60
children 6eccb68a8b99
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java
diffstat 2 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Mar 08 10:04:38 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Mar 08 10:51:01 2010 +0000
@@ -1,3 +1,10 @@
+2010-03-08  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue195
+
+	* src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java:
+	  Use InputData stored at the current state to create chart titles.
+
 2010-03-08  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	  Issue189
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java	Mon Mar 08 10:04:38 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java	Mon Mar 08 10:51:01 2010 +0000
@@ -138,8 +138,8 @@
     @Override
     protected ChartLabels createChartLabels(Locale locale, String uuid) {
         RessourceFactory factory = RessourceFactory.getInstance();
-        String parameterName     = getSelectedInputDataName(
-            uuid, parameterValuesName);
+        InputData input          = inputData.get(parameterValuesName);
+        String parameterName     = input.getDescription()[0];
 
         if (parameterName == null)
             parameterName = "parameterid";
@@ -156,7 +156,8 @@
 
     @Override
     protected String createChartSubtitle(Locale locale, String uuid) {
-        String date = getSelectedInputDataName(uuid, dateValueName);
+        InputData data = inputData.get(dateValueName);
+        String date    = data.getDescription()[0];
 
         if (date == null)
             date = "dateid";

http://dive4elements.wald.intevation.org