comparison gnv-artifacts/src/main/java/de/intevation/gnv/chart/ChartLabels.java @ 1119:7c4f81f74c47

merged gnv-artifacts
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:00 +0200
parents f953c9a559d8
children
comparison
equal deleted inserted replaced
1027:fca4b5eb8d2f 1119:7c4f81f74c47
1 /*
2 * Copyright (c) 2010 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8
9 /* Copyright (C) 2007 con terra GmbH (http://www.conterra.de)
10 * All rights reserved
11 *
12 * $Id: ChartLabels.java,v 1.1 2007/12/10 13:57:13 drewnak Exp $
13 *
14 * created by: drewnak
15 * created at : 10.12.2007
16 * created at : 11:48:39
17 *
18 * modified by: $Author: drewnak $
19 * modified at: $Date: 2007/12/10 13:57:13 $
20 */
21 package de.intevation.gnv.chart;
22
23 /**
24 * This class stores some strings used for decorating charts (e.g. title,
25 * subtitle, etc).
26 *
27 * @author drewnak
28 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> Changes and codecleanup
29 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
30 */
31 public class ChartLabels {
32 /**
33 *
34 */
35 private String title;
36
37 /**
38 *
39 */
40 private String subtitle;
41
42 /**
43 *
44 */
45 private String domainAxisLabel;
46
47 /**
48 *
49 */
50 private String rangeAxisLabel;
51
52 /**
53 *
54 */
55 private String parameterName;
56
57
58 /**
59 * Constructor
60 *
61 * @param title Title
62 * @param subtitle Subtitle
63 * @param domainAxisLabel X-axis label
64 */
65 public ChartLabels(String title, String subtitle, String domainAxisLabel) {
66 this(title, subtitle, domainAxisLabel, null);
67 }
68
69 /**
70 * Constructor
71 *
72 * @param title Title
73 * @param subtitle Subtitle
74 * @param domainAxisLabel X-axis label
75 * @param rangeAxisLabel Y-axis label
76 */
77 public ChartLabels(
78 String title,
79 String subtitle,
80 String domainAxisLabel,
81 String rangeAxisLabel
82 ) {
83 this(title, subtitle, domainAxisLabel, rangeAxisLabel, null);
84 }
85
86
87 /**
88 * Constructor
89 *
90 * @param title Title
91 * @param subtitle Subtitle
92 * @param domainAxisLabel X-axis label
93 * @param rangeAxisLabel Y-axis label
94 * @param parameterName Name of a given parameter in the chart.
95 */
96 public ChartLabels(
97 String title,
98 String subtitle,
99 String domainAxisLabel,
100 String rangeAxisLabel,
101 String parameterName
102 ) {
103 this.title = title;
104 this.subtitle = subtitle;
105 this.domainAxisLabel = domainAxisLabel;
106 this.rangeAxisLabel = rangeAxisLabel;
107 this.parameterName = parameterName;
108 }
109
110 /**
111 * @return the title
112 */
113 public String getTitle() {
114 return this.title;
115 }
116
117
118 /**
119 * @return the subtitle
120 */
121 public String getSubtitle() {
122 return subtitle;
123 }
124
125 /**
126 * @return the timeAxisLabel
127 */
128 public String getDomainAxisLabel() {
129 return this.domainAxisLabel;
130 }
131
132
133 /**
134 * @return the y-axis label
135 */
136 public String getRangeAxisLabel() {
137 return this.rangeAxisLabel;
138 }
139
140
141 /**
142 * @return the parameter name
143 */
144 public String getParameterName() {
145 return this.parameterName;
146 }
147 }
148 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org