comparison flys-artifacts/src/main/java/de/intevation/flys/exports/CrossSectionGenerator.java @ 2051:4ba5036109d2

Make use of user defined axes labels during chart creation. flys-artifacts/trunk@3541 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 27 Dec 2011 07:52:25 +0000
parents 3157a78e6494
children c7f18fa0d685
comparison
equal deleted inserted replaced
2050:c4e0e433f825 2051:4ba5036109d2
93 93
94 return msg(I18N_CHART_SUBTITLE, "", args); 94 return msg(I18N_CHART_SUBTITLE, "", args);
95 } 95 }
96 96
97 97
98 /**
99 * Add localized subtitle to chart.
100 */
101 @Override 98 @Override
102 protected void addSubtitles(JFreeChart chart) { 99 protected void addSubtitles(JFreeChart chart) {
103 String subtitle = getChartSubtitle(); 100 String subtitle = getChartSubtitle();
104 chart.addSubtitle(new TextTitle(subtitle)); 101 chart.addSubtitle(new TextTitle(subtitle));
105 } 102 }
106 103
107 104
108 /** 105 @Override
109 * Get localized X Axis label. 106 protected String getDefaultXAxisLabel() {
110 */
111 protected String getXAxisLabel() {
112 return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL_DEFAULT); 107 return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL_DEFAULT);
113 } 108 }
114 109
115 110
116 /** 111 @Override
117 * Get localized Y Axis label. 112 protected String getDefaultYAxisLabel(int pos) {
118 */
119 protected String getYAxisLabel() {
120 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); 113 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT);
121 } 114 }
122 115
123 116
124 /** 117 /**

http://dive4elements.wald.intevation.org