Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2167:e0add4b2d4bc
Issue 461.
Override buildChartSection() to disable the chart subtitle entry in
ChartSettings.
flys-artifacts/trunk@3762 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 25 Jan 2012 10:19:30 +0000 |
parents | 2336927cb096 |
children | e2124ca11adb |
comparison
equal
deleted
inserted
replaced
2166:2898b1ff6013 | 2167:e0add4b2d4bc |
---|---|
89 | 89 |
90 /** Always return default subtitle. */ | 90 /** Always return default subtitle. */ |
91 @Override | 91 @Override |
92 protected String getChartSubtitle() { | 92 protected String getChartSubtitle() { |
93 // XXX NOTE: overriding this method disables ChartSettings subtitle! | 93 // XXX NOTE: overriding this method disables ChartSettings subtitle! |
94 // TODO clarify XXX NOTE | 94 // The default implementation of this method in ChartGenerator returns |
95 // the subtitle changed via the chart settings dialog. This method | |
96 // always returns the subtitle containing river and km, NEVER the | |
97 // ChartSettings subtitle! | |
95 return getDefaultChartSubtitle(); | 98 return getDefaultChartSubtitle(); |
96 } | 99 } |
97 | 100 |
98 | 101 |
99 /** Get Charts default subtitle. */ | 102 /** Get Charts default subtitle. */ |
255 | 258 |
256 StyledSeriesBuilder.addPoints(series, (double [][]) o); | 259 StyledSeriesBuilder.addPoints(series, (double [][]) o); |
257 | 260 |
258 addAxisSeries(series, 0, visible); | 261 addAxisSeries(series, 0, visible); |
259 } | 262 } |
263 | |
264 | |
265 /** | |
266 * Creates a new <i>ChartSection</i>. | |
267 * | |
268 * @return a new <i>ChartSection</i>. | |
269 */ | |
270 @Override | |
271 protected ChartSection buildChartSection() { | |
272 ChartSection chartSection = new ChartSection(); | |
273 chartSection.setTitle(getChartTitle()); | |
274 chartSection.setDisplayGird(isGridVisible()); | |
275 return chartSection; | |
276 } | |
260 } | 277 } |
261 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 278 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |