comparison artifacts/src/main/java/org/dive4elements/river/exports/extreme/ExtremeWQCurveGenerator.java @ 6483:0534ff91e499

issue1370: ExtremeWQCurveGenerator: correct second y axis label (cm).
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 27 Jun 2013 12:03:38 +0200
parents c5eaa1fcd52b
children 6791411ed1fc
comparison
equal deleted inserted replaced
6482:b07cfc319781 6483:0534ff91e499
216 @Override 216 @Override
217 protected String getDefaultYAxisLabel(int pos) { 217 protected String getDefaultYAxisLabel(int pos) {
218 D4EArtifact flys = (D4EArtifact) master; 218 D4EArtifact flys = (D4EArtifact) master;
219 219
220 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); 220 String unit = RiverUtils.getRiver(flys).getWstUnit().getName();
221 if (pos == 0 && getCurrentGaugeDatum() != 0) 221 if (pos == 0) {
222 unit = "cm"; 222 unit = "cm";
223 }
223 224
224 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit }); 225 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit });
225 } 226 }
226 } 227 }
227 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 228 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org