Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixWQCurveGenerator.java @ 6473:70185cd48058
FixWQCurveGenerator: Fix second y axis label.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 27 Jun 2013 11:53:38 +0200 |
parents | 4bbad31c8616 |
children | 6aac9ad1f8a8 |
comparison
equal
deleted
inserted
replaced
6472:4bbad31c8616 | 6473:70185cd48058 |
---|---|
672 @Override | 672 @Override |
673 protected String getDefaultYAxisLabel(int pos) { | 673 protected String getDefaultYAxisLabel(int pos) { |
674 D4EArtifact flys = (D4EArtifact) master; | 674 D4EArtifact flys = (D4EArtifact) master; |
675 | 675 |
676 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); | 676 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); |
677 if (pos == 0 && getCurrentGaugeDatum() != 0) | 677 if (pos == 0) { |
678 unit = "cm"; | 678 unit = "cm"; |
679 } | |
679 | 680 |
680 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit }); | 681 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit }); |
681 } | 682 } |
682 | 683 |
683 @Override | 684 @Override |