changeset 7127:1106f580420c

Add axis label to bedheight processor.
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 25 Sep 2013 11:47:45 +0200
parents 05d442db4ca6
children 917b26172853
files artifacts/src/main/java/org/dive4elements/river/exports/process/BedheightProcessor.java
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedheightProcessor.java	Wed Sep 25 10:25:10 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedheightProcessor.java	Wed Sep 25 11:47:45 2013 +0200
@@ -29,6 +29,11 @@
 
     private final static String BEDHEIGHT = "bedheight";
 
+    public static final String I18N_AXIS_LABEL_DEFAULT
+        = "Gepeilte Breite [m]";
+    public static final String I18N_AXIS_LABEL =
+        "chart.bedheight_middle.sounding.yaxis.label";
+
     @Override
     public void doOut(
             DiagramGenerator generator,
@@ -99,4 +104,11 @@
     public boolean canHandle(String facettype) {
         return BEDHEIGHT.equals(facettype);
     }
+
+    @Override
+    public String getAxisLabel(DiagramGenerator generator) {
+        return generator.msg(
+                I18N_AXIS_LABEL,
+                I18N_AXIS_LABEL_DEFAULT);
+    }
 }

http://dive4elements.wald.intevation.org