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: sascha@836: /* Copyright (C) 2007 con terra GmbH (http://www.conterra.de) sascha@836: * All rights reserved sascha@836: * sascha@836: * $Id: ChartLabels.java,v 1.1 2007/12/10 13:57:13 drewnak Exp $ sascha@836: * sascha@836: * created by: drewnak sascha@836: * created at : 10.12.2007 sascha@836: * created at : 11:48:39 sascha@836: * sascha@836: * modified by: $Author: drewnak $ sascha@836: * modified at: $Date: 2007/12/10 13:57:13 $ sascha@836: */ sascha@836: package de.intevation.gnv.chart; sascha@836: sascha@836: /** sascha@836: * This class stores some strings used for decorating charts (e.g. title, sascha@836: * subtitle, etc). sascha@836: * sascha@836: * @author drewnak sascha@836: * @author Tim Englich Changes and codecleanup sascha@836: * @author Ingo Weinzierl sascha@836: */ sascha@836: public class ChartLabels { sascha@836: /** sascha@836: * sascha@836: */ sascha@836: private String title; sascha@836: sascha@836: /** sascha@836: * sascha@836: */ sascha@836: private String subtitle; sascha@836: sascha@836: /** ingo@870: * sascha@836: */ sascha@836: private String domainAxisLabel; sascha@836: sascha@836: /** sascha@836: * sascha@836: */ sascha@836: private String rangeAxisLabel; sascha@836: sascha@836: /** sascha@836: * sascha@836: */ sascha@836: private String parameterName; sascha@836: sascha@836: sascha@836: /** sascha@836: * Constructor ingo@870: * sascha@836: * @param title Title sascha@836: * @param subtitle Subtitle sascha@836: * @param domainAxisLabel X-axis label sascha@836: */ sascha@836: public ChartLabels(String title, String subtitle, String domainAxisLabel) { sascha@836: this(title, subtitle, domainAxisLabel, null); sascha@836: } sascha@836: sascha@836: /** sascha@836: * Constructor sascha@836: * sascha@836: * @param title Title sascha@836: * @param subtitle Subtitle sascha@836: * @param domainAxisLabel X-axis label sascha@836: * @param rangeAxisLabel Y-axis label sascha@836: */ sascha@836: public ChartLabels( sascha@836: String title, sascha@836: String subtitle, sascha@836: String domainAxisLabel, sascha@836: String rangeAxisLabel sascha@836: ) { sascha@836: this(title, subtitle, domainAxisLabel, rangeAxisLabel, null); sascha@836: } sascha@836: sascha@836: sascha@836: /** sascha@836: * Constructor sascha@836: * sascha@836: * @param title Title sascha@836: * @param subtitle Subtitle sascha@836: * @param domainAxisLabel X-axis label sascha@836: * @param rangeAxisLabel Y-axis label sascha@836: * @param parameterName Name of a given parameter in the chart. sascha@836: */ sascha@836: public ChartLabels( sascha@836: String title, sascha@836: String subtitle, sascha@836: String domainAxisLabel, sascha@836: String rangeAxisLabel, sascha@836: String parameterName sascha@836: ) { sascha@836: this.title = title; sascha@836: this.subtitle = subtitle; sascha@836: this.domainAxisLabel = domainAxisLabel; sascha@836: this.rangeAxisLabel = rangeAxisLabel; sascha@836: this.parameterName = parameterName; sascha@836: } sascha@836: sascha@836: /** sascha@836: * @return the title sascha@836: */ sascha@836: public String getTitle() { sascha@836: return this.title; sascha@836: } sascha@836: sascha@836: sascha@836: /** sascha@836: * @return the subtitle sascha@836: */ sascha@836: public String getSubtitle() { sascha@836: return subtitle; sascha@836: } sascha@836: sascha@836: /** sascha@836: * @return the timeAxisLabel sascha@836: */ sascha@836: public String getDomainAxisLabel() { sascha@836: return this.domainAxisLabel; sascha@836: } sascha@836: sascha@836: sascha@836: /** sascha@836: * @return the y-axis label sascha@836: */ sascha@836: public String getRangeAxisLabel() { sascha@836: return this.rangeAxisLabel; sascha@836: } sascha@836: sascha@836: sascha@836: /** sascha@836: * @return the parameter name sascha@836: */ sascha@836: public String getParameterName() { sascha@836: return this.parameterName; sascha@836: } sascha@836: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :