Mercurial > dive4elements > gnv-client
view gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/horizontal/HorizontalProfileMeshOutputState.java @ 1145:dfe1ac687c7f tip
added tags
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:16:15 +0200 |
parents | f953c9a559d8 |
children |
line wrap: on
line source
/* * Copyright (c) 2010 by Intevation GmbH * * This program is free software under the LGPL (>=v2.1) * Read the file LGPL.txt coming with the software for details * or visit http://www.gnu.org/licenses/ if it does not exist. */ 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 :