comparison artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceYearGenerator.java @ 6227:70ae55f7bc55

Fixed i18n string to have the correct unit in y axis.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 06 Jun 2013 18:09:21 +0200
parents 036b02fc0c81
children ef3b02034f6a 7cf3b3bcd439
comparison
equal deleted inserted replaced
6226:a782693e4d5f 6227:70ae55f7bc55
240 } 240 }
241 241
242 @Override 242 @Override
243 protected String getDefaultYAxisLabel(int pos) { 243 protected String getDefaultYAxisLabel(int pos) {
244 String label = "default"; 244 String label = "default";
245 D4EArtifact flys = (D4EArtifact) master;
245 if (pos == YAXIS.D.idx) { 246 if (pos == YAXIS.D.idx) {
246 label = msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); 247 label = msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT);
247 } 248 }
248 else if (pos == YAXIS.M.idx) { 249 else if (pos == YAXIS.M.idx) {
249 label = msg(I18N_SECOND_YAXIS_LABEL, I18N_SECOND_YAXIS_LABEL_DEFAULT); 250 label = msg(I18N_SECOND_YAXIS_LABEL, I18N_SECOND_YAXIS_LABEL_DEFAULT);
250 } 251 }
251 else if (pos == YAXIS.H.idx) { 252 else if (pos == YAXIS.H.idx) {
252 D4EArtifact flys = (D4EArtifact) master;
253 label = msg(I18N_THIRD_YAXIS_LABEL, 253 label = msg(I18N_THIRD_YAXIS_LABEL,
254 I18N_THIRD_YAXIS_LABEL_DEFAULT, 254 I18N_THIRD_YAXIS_LABEL_DEFAULT,
255 new Object[] 255 new Object[]
256 { RiverUtils.getRiver(flys).getWstUnit().getName() }); 256 { RiverUtils.getRiver(flys).getWstUnit().getName() });
257 } 257 }
258 else if (pos == YAXIS.dW.idx) { 258 else if (pos == YAXIS.dW.idx) {
259 label = msg(I18N_DW_YAXIS_LABEL, I18N_DW_YAXIS_LABEL_DEFAULT); 259 label = msg(I18N_DW_YAXIS_LABEL, I18N_DW_YAXIS_LABEL_DEFAULT);
260 } 260 }
261 else if (pos == YAXIS.W.idx) { 261 else if (pos == YAXIS.W.idx) {
262 return msg(I18N_W_YAXIS_LABEL, I18N_W_YAXIS_LABEL_DEFAULT); 262 return msg(I18N_W_YAXIS_LABEL, I18N_W_YAXIS_LABEL_DEFAULT,
263 new Object[]
264 { RiverUtils.getRiver(flys).getWstUnit().getName() });
263 } 265 }
264 266
265 return label; 267 return label;
266 } 268 }
267 269

http://dive4elements.wald.intevation.org