changeset 1094:e71e982772a9

Adjusted the subtitle of the product 'Achsenparalleles Vertikalprofil' (issue250). gnv-artifacts/trunk@1209 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 14 Jun 2010 09:56:34 +0000
parents 479831c0463b
children c961cd9a13f7
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionParallelOutputState.java
diffstat 2 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Jun 14 09:33:47 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Jun 14 09:56:34 2010 +0000
@@ -1,3 +1,11 @@
+2010-06-14  Ingo Weinzierl <ingo.weinzierl@intevation.de>
+
+	  Issue250 - Adjusted subtitle of 'Achsenparalleles Vertikalprofil'
+
+	* src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionParallelOutputState.java:
+	  Adapted the subtitle of charts from type 'Achsenparalleles
+	  Vertikalprofil'.
+
 2010-06-14  Ingo Weinzierl <ingo.weinzierl@intevation.de>
 
 	* doc/conf/products/verticalcrosssection/conf_mesh_parallel.xml: Renamed
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionParallelOutputState.java	Mon Jun 14 09:33:47 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionParallelOutputState.java	Mon Jun 14 09:56:34 2010 +0000
@@ -6,6 +6,7 @@
 
 import com.vividsolutions.jts.io.WKTWriter;
 
+import de.intevation.gnv.artifacts.ressource.RessourceFactory;
 
 import de.intevation.gnv.geobackend.base.Result;
 import de.intevation.gnv.geobackend.base.ResultDescriptor;
@@ -21,6 +22,7 @@
 
 import java.util.Collection;
 import java.util.Iterator;
+import java.util.Locale;
 
 import org.apache.log4j.Logger;
 
@@ -102,5 +104,24 @@
 
         return filters;
     }
+
+
+    @Override
+    protected String createChartSubtitle(Locale locale, String uuid) {
+        String subtitle = super.createChartSubtitle(locale, uuid);
+
+        InputData data = inputData.get("mesh_point");
+        if (data == null)
+            return subtitle;
+
+        RessourceFactory factory = RessourceFactory.getInstance();
+        String coordinate        = factory.getRessource(
+            locale, "coordinate", "coordinate");
+
+        subtitle += "\n" + coordinate + ": ";
+        subtitle += data.getDescription(data.getValue());
+
+        return subtitle;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org