ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: ingo@855: package de.intevation.gnv.state.profile.horizontal; ingo@855: ingo@855: import java.util.Locale; ingo@855: ingo@855: import org.apache.log4j.Logger; ingo@855: ingo@855: public class HorizontalProfileMeshOutputState ingo@855: extends HorizontalProfileOutputState ingo@855: { ingo@855: private static Logger logger = ingo@855: Logger.getLogger(HorizontalProfileMeshOutputState.class); ingo@855: ingo@855: ingo@855: public HorizontalProfileMeshOutputState() { ingo@855: super(); ingo@855: } ingo@855: ingo@855: ingo@855: /** ingo@855: * Creates and returns the subtitle of a chart. ingo@855: * ingo@855: * @param locale The Locale used to adjust the language of the subtitle. ingo@855: * @param uuid The UUID of the current artifact. ingo@855: * @return the timeperiod of this chart and the start coordinate. ingo@855: */ ingo@855: @Override ingo@855: protected String createChartSubtitle(Locale locale, String uuid) { ingo@855: logger.debug("create chart subtitle."); ingo@855: ingo@855: StringBuilder sb = new StringBuilder(); ingo@855: String time = getData(locale, "dateid"); ingo@855: if (time != null) { ingo@855: sb.append(time); ingo@855: } ingo@855: ingo@855: String coordinate = getData(locale, "mesh_point"); ingo@855: if (coordinate != null) { ingo@856: sb.append("\n"); ingo@855: sb.append(coordinate); ingo@855: } ingo@855: ingo@855: String depth = getData(locale, "depthid"); ingo@855: if (depth != null) { ingo@856: sb.append("\n"); ingo@855: sb.append(depth); ingo@855: } ingo@855: ingo@855: return sb.toString(); ingo@855: } ingo@855: } ingo@855: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :