Mercurial > dive4elements > river
changeset 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 | bd291447fef1 |
files | artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightGenerator.java |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightGenerator.java Mon Jun 03 14:51:57 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/MiddleBedHeightGenerator.java Mon Jun 03 14:52:31 2013 +0200 @@ -148,7 +148,13 @@ * Get internationalized label for the y axis. */ protected String getHAxisLabel() { - return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT); + D4EArtifact flys = (D4EArtifact) master; + + String unit = RiverUtils.getRiver(flys).getWstUnit().getName(); + + return msg(I18N_YAXIS_LABEL, + I18N_YAXIS_LABEL_DEFAULT, + new Object[] { unit }); }