Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1988:158b3aabda2c | 1989:156304542edf |
---|---|
105 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); | 105 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT); |
106 } | 106 } |
107 | 107 |
108 | 108 |
109 @Override | 109 @Override |
110 protected void addSubtitles(JFreeChart chart) { | 110 protected String getChartSubtitle() { |
111 double[] dist = getRange(); | 111 double[] dist = getRange(); |
112 | 112 |
113 Object[] args = new Object[] { | 113 Object[] args = new Object[] { |
114 getRiverName(), | 114 getRiverName(), |
115 dist[0] | 115 dist[0] |
116 }; | 116 }; |
117 | 117 |
118 String subtitle = msg(I18N_CHART_SUBTITLE, "", args); | 118 return msg(I18N_CHART_SUBTITLE, "", args); |
119 } | |
120 | |
121 | |
122 @Override | |
123 protected void addSubtitles(JFreeChart chart) { | |
124 String subtitle = getChartSubtitle(); | |
119 chart.addSubtitle(new TextTitle(subtitle)); | 125 chart.addSubtitle(new TextTitle(subtitle)); |
120 } | 126 } |
121 | 127 |
122 | 128 |
123 protected String getXAxisLabel() { | 129 protected String getXAxisLabel() { |