Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.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 | 2c9bf9aede64 |
children | e71719483546 |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java Thu Dec 15 10:09:02 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/DurationCurveGenerator.java Thu Dec 15 12:05:06 2011 +0000 @@ -107,7 +107,7 @@ @Override - protected void addSubtitles(JFreeChart chart) { + protected String getChartSubtitle() { double[] dist = getRange(); Object[] args = new Object[] { @@ -115,7 +115,13 @@ dist[0] }; - String subtitle = msg(I18N_CHART_SUBTITLE, "", args); + return msg(I18N_CHART_SUBTITLE, "", args); + } + + + @Override + protected void addSubtitles(JFreeChart chart) { + String subtitle = getChartSubtitle(); chart.addSubtitle(new TextTitle(subtitle)); }