Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/LongitudinalSectionGenerator.java @ 2047:0318fa6f0844
Make use of first attributes specified in the ChartSettings. NOTE: work is still in progress.
flys-artifacts/trunk@3535 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 23 Dec 2011 08:57:25 +0000 |
parents | 8e7e56db96a5 |
children | 3157a78e6494 |
comparison
equal
deleted
inserted
replaced
2046:2ae0627f956e | 2047:0318fa6f0844 |
---|---|
123 this.inverted = inverted; | 123 this.inverted = inverted; |
124 } | 124 } |
125 | 125 |
126 | 126 |
127 /** | 127 /** |
128 * Get internationalized title for chart. | 128 * Returns a title for the chart from ChartSettings object |
129 */ | 129 * if this object is not null or creates a default title. |
130 * | |
131 * @return a title. | |
132 */ | |
133 @Override | |
130 public String getChartTitle() { | 134 public String getChartTitle() { |
135 ChartSettings chartSettings = getChartSettings(); | |
136 if (chartSettings != null) { | |
137 return getChartTitle(chartSettings); | |
138 } | |
139 | |
131 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); | 140 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); |
132 } | 141 } |
133 | 142 |
134 | 143 |
144 /** | |
145 * Returns a subtitle for the chart from ChartSettings object | |
146 * if this object is not null or creates a default title. | |
147 * | |
148 * @return a title. | |
149 */ | |
135 @Override | 150 @Override |
136 protected String getChartSubtitle() { | 151 protected String getChartSubtitle() { |
152 ChartSettings chartSettings = getChartSettings(); | |
153 if (chartSettings != null) { | |
154 return getChartSubtitle(chartSettings); | |
155 } | |
156 | |
137 double[] dist = getRange(); | 157 double[] dist = getRange(); |
138 | 158 |
139 Object[] args = new Object[] { | 159 Object[] args = new Object[] { |
140 getRiverName(), | 160 getRiverName(), |
141 | 161 |