Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 1989:156304542edf
Finished the ChartSection part of the chart Settings returned by the XYChartGenerator.
flys-artifacts/trunk@3423 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 15 Dec 2011 12:05:06 +0000 |
parents | b30e1710df1d |
children | 5aecebcc4698 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Thu Dec 15 10:09:02 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java Thu Dec 15 12:05:06 2011 +0000 @@ -61,11 +61,8 @@ } - /** - * Add localized subtitle to chart. - */ @Override - protected void addSubtitles(JFreeChart chart) { + protected String getChartSubtitle() { double[] dist = getRange(); Object[] args = new Object[] { @@ -73,7 +70,16 @@ getKm() }; - String subtitle = msg(I18N_CHART_SUBTITLE, "", args); + return msg(I18N_CHART_SUBTITLE, "", args); + } + + + /** + * Add localized subtitle to chart. + */ + @Override + protected void addSubtitles(JFreeChart chart) { + String subtitle = getChartSubtitle(); chart.addSubtitle(new TextTitle(subtitle)); }