Mercurial > dive4elements > gnv-client
view gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshOutputState.java @ 1082:3c0fd3c2fd6b
Enabled histogram creation for vectorial horizontalprofiles.
gnv-artifacts/trunk@1184 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 09 Jun 2010 09:58:38 +0000 |
parents | c9996913ff4b |
children | f953c9a559d8 |
line wrap: on
line source
package de.intevation.gnv.state.profile.horizontal; import java.util.Locale; import org.apache.log4j.Logger; public class HorizontalProfileMeshOutputState extends HorizontalProfileOutputState { private static Logger logger = Logger.getLogger(HorizontalProfileMeshOutputState.class); public HorizontalProfileMeshOutputState() { super(); } /** * Creates and returns the subtitle of a chart. * * @param locale The Locale used to adjust the language of the subtitle. * @param uuid The UUID of the current artifact. * @return the timeperiod of this chart and the start coordinate. */ @Override protected String createChartSubtitle(Locale locale, String uuid) { logger.debug("create chart subtitle."); StringBuilder sb = new StringBuilder(); String time = getData(locale, "dateid"); if (time != null) { sb.append(time); } String coordinate = getData(locale, "mesh_point"); if (coordinate != null) { sb.append("\n"); sb.append(coordinate); } String depth = getData(locale, "depthid"); if (depth != null) { sb.append("\n"); sb.append(depth); } return sb.toString(); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :