changeset 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
files artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java	Wed Jun 26 16:45:43 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java	Wed Jun 26 16:46:27 2013 +0200
@@ -96,6 +96,8 @@
         D4EArtifact flys = (D4EArtifact) master;
 
         String unit = RiverUtils.getRiver(flys).getWstUnit().getName();
+        if (pos == 1 && getCurrentGaugeDatum() != 0)
+            unit = "cm";
 
         return msg(I18N_YAXIS_LABEL, I18N_YAXIS_LABEL_DEFAULT, new Object[] { unit });
     }

http://dive4elements.wald.intevation.org