Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
1988:158b3aabda2c | 1989:156304542edf |
---|---|
59 }; | 59 }; |
60 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT, i18n_msg_args); | 60 return msg(I18N_CHART_TITLE, I18N_CHART_TITLE_DEFAULT, i18n_msg_args); |
61 } | 61 } |
62 | 62 |
63 | 63 |
64 /** | |
65 * Add localized subtitle to chart. | |
66 */ | |
67 @Override | 64 @Override |
68 protected void addSubtitles(JFreeChart chart) { | 65 protected String getChartSubtitle() { |
69 double[] dist = getRange(); | 66 double[] dist = getRange(); |
70 | 67 |
71 Object[] args = new Object[] { | 68 Object[] args = new Object[] { |
72 getRiverName(), | 69 getRiverName(), |
73 getKm() | 70 getKm() |
74 }; | 71 }; |
75 | 72 |
76 String subtitle = msg(I18N_CHART_SUBTITLE, "", args); | 73 return msg(I18N_CHART_SUBTITLE, "", args); |
74 } | |
75 | |
76 | |
77 /** | |
78 * Add localized subtitle to chart. | |
79 */ | |
80 @Override | |
81 protected void addSubtitles(JFreeChart chart) { | |
82 String subtitle = getChartSubtitle(); | |
77 chart.addSubtitle(new TextTitle(subtitle)); | 83 chart.addSubtitle(new TextTitle(subtitle)); |
78 } | 84 } |
79 | 85 |
80 | 86 |
81 /** | 87 /** |