Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/extreme/ExtremeWQCurveGenerator.java @ 6469:cce8c5f59053
ExtremeWQCurveGenerator: Fix axis labels.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 27 Jun 2013 10:45:41 +0200 |
parents | 5de3388c5978 |
children | c5eaa1fcd52b |
comparison
equal
deleted
inserted
replaced
6468:5de3388c5978 | 6469:cce8c5f59053 |
---|---|
198 return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL_DEFAULT); | 198 return msg(I18N_XAXIS_LABEL, I18N_XAXIS_LABEL_DEFAULT); |
199 } | 199 } |
200 | 200 |
201 @Override | 201 @Override |
202 protected String getDefaultYAxisLabel(int pos) { | 202 protected String getDefaultYAxisLabel(int pos) { |
203 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); | 203 D4EArtifact flys = (D4EArtifact) master; |
204 | |
205 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); | |
206 if (pos == 0 && getCurrentGaugeDatum() != 0) | |
207 unit = "cm"; | |
208 | |
209 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit }); | |
204 } | 210 } |
205 } | 211 } |
206 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 212 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |