changeset 8374:2cabecf27ccc

Added km sub title to fix derivate curve, too.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 02 Oct 2014 18:57:10 +0200
parents 55b5d6d98d15
children 0faa82973f60
files artifacts/src/main/java/org/dive4elements/river/exports/process/FixDerivedProcessor.java
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/FixDerivedProcessor.java	Thu Oct 02 16:33:16 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/FixDerivedProcessor.java	Thu Oct 02 18:57:10 2014 +0200
@@ -29,6 +29,8 @@
 
     private String I18N_AXIS_LABEL = "chart.discharge.curve.yaxis.label";
 
+    private static final String I18N_SUBTITLE_KM = "chart.subtitle.km";
+
 
     public FixDerivedProcessor() {
     }
@@ -68,6 +70,11 @@
             generator.addAxisSeries(series, axisName, visible);
             series.putMetaData(metaData, bundle.getArtifact(), context);
         }
+
+        generator.addSubtitle(Resources.getMsg(
+            generator.getCallContext().getMeta(),
+                I18N_SUBTITLE_KM,
+                new Object[] { "$KM" }));
     }
 
     @Override

http://dive4elements.wald.intevation.org