Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightGenerator.java @ 6168:2441a8cc8f37
part of issue986: axis label includes correct wst-unit.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 03 Jun 2013 14:52:31 +0200 |
parents | 5531d54581db |
children | 128686fa5add |
comparison
equal
deleted
inserted
replaced
6167:5531d54581db | 6168:2441a8cc8f37 |
---|---|
146 | 146 |
147 /** | 147 /** |
148 * Get internationalized label for the y axis. | 148 * Get internationalized label for the y axis. |
149 */ | 149 */ |
150 protected String getHAxisLabel() { | 150 protected String getHAxisLabel() { |
151 return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); | 151 D4EArtifact flys = (D4EArtifact) master; |
152 | |
153 String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); | |
154 | |
155 return msg(I18N_YAXIS_LABEL, | |
156 I18N_YAXIS_LABEL_DEFAULT, | |
157 new Object[] { unit }); | |
152 } | 158 } |
153 | 159 |
154 | 160 |
155 /** | 161 /** |
156 * Produce output. | 162 * Produce output. |