comparison artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java @ 6446:49760b45d4df

Adjust label of second y axis to show cm if it is the "cm" axis.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 26 Jun 2013 16:46:27 +0200
parents 192fbd23d97f
children dad4f0424783
comparison
equal deleted inserted replaced
6445:192fbd23d97f 6446:49760b45d4df
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)
100 unit = "cm";
99 101
100 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 });
101 } 103 }
102 104
103 105

http://dive4elements.wald.intevation.org