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