[PATCH 1 of 7] Add axis label to bedheight processor

Wald Commits scm-commit at wald.intevation.org
Wed Sep 25 11:57:42 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1380102465 -7200
# Node ID 1106f580420cdb5e2b6c22a2c749d1392661fbb0
# Parent  05d442db4ca63b397dca6ccc80d434ae2427919b
Add axis label to bedheight processor.

diff -r 05d442db4ca6 -r 1106f580420c artifacts/src/main/java/org/dive4elements/river/exports/process/BedheightProcessor.java
--- 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);
+    }
 }


More information about the Dive4elements-commits mailing list