Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionParallelOutputState.java @ 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 | 51f3edc9d743 |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
1093:479831c0463b | 1094:e71e982772a9 |
---|---|
4 import com.vividsolutions.jts.geom.CoordinateSequence; | 4 import com.vividsolutions.jts.geom.CoordinateSequence; |
5 import com.vividsolutions.jts.geom.impl.CoordinateArraySequenceFactory; | 5 import com.vividsolutions.jts.geom.impl.CoordinateArraySequenceFactory; |
6 | 6 |
7 import com.vividsolutions.jts.io.WKTWriter; | 7 import com.vividsolutions.jts.io.WKTWriter; |
8 | 8 |
9 import de.intevation.gnv.artifacts.ressource.RessourceFactory; | |
9 | 10 |
10 import de.intevation.gnv.geobackend.base.Result; | 11 import de.intevation.gnv.geobackend.base.Result; |
11 import de.intevation.gnv.geobackend.base.ResultDescriptor; | 12 import de.intevation.gnv.geobackend.base.ResultDescriptor; |
12 | 13 |
13 import de.intevation.gnv.geobackend.base.query.QueryExecutor; | 14 import de.intevation.gnv.geobackend.base.query.QueryExecutor; |
19 | 20 |
20 import de.intevation.gnv.utils.WKTUtils; | 21 import de.intevation.gnv.utils.WKTUtils; |
21 | 22 |
22 import java.util.Collection; | 23 import java.util.Collection; |
23 import java.util.Iterator; | 24 import java.util.Iterator; |
25 import java.util.Locale; | |
24 | 26 |
25 import org.apache.log4j.Logger; | 27 import org.apache.log4j.Logger; |
26 | 28 |
27 /** | 29 /** |
28 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 30 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
100 filters[5] = axisid.getValue(); | 102 filters[5] = axisid.getValue(); |
101 filters[6] = meshpoint.getValue(); | 103 filters[6] = meshpoint.getValue(); |
102 | 104 |
103 return filters; | 105 return filters; |
104 } | 106 } |
107 | |
108 | |
109 @Override | |
110 protected String createChartSubtitle(Locale locale, String uuid) { | |
111 String subtitle = super.createChartSubtitle(locale, uuid); | |
112 | |
113 InputData data = inputData.get("mesh_point"); | |
114 if (data == null) | |
115 return subtitle; | |
116 | |
117 RessourceFactory factory = RessourceFactory.getInstance(); | |
118 String coordinate = factory.getRessource( | |
119 locale, "coordinate", "coordinate"); | |
120 | |
121 subtitle += "\n" + coordinate + ": "; | |
122 subtitle += data.getDescription(data.getValue()); | |
123 | |
124 return subtitle; | |
125 } | |
105 } | 126 } |
106 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 127 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |