[PATCH 3 of 4] Add label for bed difference axis
Wald Commits
scm-commit at wald.intevation.org
Wed Sep 25 15:08:53 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1380114498 -7200
# Node ID 414794d0a50de64d2ee3a927c872b86aa38d3158
# Parent 432047ee5b4b532788b5755a5bc06a52b7a23b99
Add label for bed difference axis
diff -r 432047ee5b4b -r 414794d0a50d artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java
--- 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 :
More information about the Dive4elements-commits
mailing list