changeset 7146:414794d0a50d

Add label for bed difference axis
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 25 Sep 2013 15:08:18 +0200
parents 432047ee5b4b
children 41779c13f9e4
files artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java	Wed Sep 25 15:07:41 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java	Wed Sep 25 15:08:18 2013 +0200
@@ -30,6 +30,11 @@
 
     protected static double GAP_TOLERANCE = 0.101d;
 
+    public static final String I18N_AXIS_LABEL =
+        "chart.beddifference.yaxis.label.diff";
+    public static final String I18N_AXIS_LABEL_DEFAULT =
+        "delta S [cm]";
+
     @Override
     public void doOut(
             DiagramGenerator generator,
@@ -104,5 +109,12 @@
             || BED_DIFFERENCE_YEAR_HEIGHT1_FILTERED.equals(facetType)
             || BED_DIFFERENCE_YEAR_HEIGHT2_FILTERED.equals(facetType);
     }
+
+    @Override
+    public String getAxisLabel(DiagramGenerator generator) {
+        return generator.msg(
+                I18N_AXIS_LABEL,
+                I18N_AXIS_LABEL_DEFAULT);
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org