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