# HG changeset patch # User Ingo Weinzierl # Date 1276509394 0 # Node ID e71e982772a96f58f3ee3996645aa6d6dbf6a88f # Parent 479831c0463b7499c43f4060663a66d710ebd353 Adjusted the subtitle of the product 'Achsenparalleles Vertikalprofil' (issue250). gnv-artifacts/trunk@1209 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 479831c0463b -r e71e982772a9 gnv-artifacts/ChangeLog --- 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 + + 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 * doc/conf/products/verticalcrosssection/conf_mesh_parallel.xml: Renamed diff -r 479831c0463b -r e71e982772a9 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionParallelOutputState.java --- 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 :