comparison artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java @ 6454:e860fa106f56

issue1370: Now that the default first y axis is in cm, change default label.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 26 Jun 2013 22:25:19 +0200
parents f11165468f0a
children eff4c24a79b1
comparison
equal deleted inserted replaced
6453:f11165468f0a 6454:e860fa106f56
94 @Override 94 @Override
95 protected String getDefaultYAxisLabel(int pos) { 95 protected String getDefaultYAxisLabel(int pos) {
96 D4EArtifact flys = (D4EArtifact) master; 96 D4EArtifact flys = (D4EArtifact) master;
97 97
98 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); 98 String unit = RiverUtils.getRiver(flys).getWstUnit().getName();
99 if (pos == 1 && getCurrentGaugeDatum() != 0) 99 if (pos == 0 && getCurrentGaugeDatum() != 0)
100 unit = "cm"; 100 unit = "cm";
101 101
102 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit }); 102 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit });
103 } 103 }
104 104

http://dive4elements.wald.intevation.org