[PATCH 2 of 3] Added injectors to config and moved subtitle conf

Wald Commits scm-commit at wald.intevation.org
Wed Sep 10 10:02:51 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1410336117 -7200
# Node ID 1e30489d09587e6a3d91fc3f2bf8962814a8a2dc
# Parent  c7ca9c228314cffedb7eb33220e89ed338105d8b
Added injectors to config and moved subtitle conf.

diff -r c7ca9c228314 -r 1e30489d0958 artifacts/doc/conf/generators/discharge-diagram-defaults.xml
--- a/artifacts/doc/conf/generators/discharge-diagram-defaults.xml	Wed Sep 10 10:01:11 2014 +0200
+++ b/artifacts/doc/conf/generators/discharge-diagram-defaults.xml	Wed Sep 10 10:01:57 2014 +0200
@@ -1,11 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <discharge-defaults>
     <axis name="W"/>
-    <domain-axis key="chart.discharge.xaxis.label" default="Q [m\u00b3/s]"/>
-    <subtitle key="chart.computed.discharge.curve.subtitle" default="-">
-        <arg expr="artifact.river"/>
-        <arg expr="artifact.ld_locations" type="double"/>
-    </subtitle>
+    <domain-axis key="chart.discharge.xaxis.label" default="Q [kubikmeter]"/>
     <processor class="org.dive4elements.river.exports.process.DischargeProcessor" axis="W"/>
     <processor class="org.dive4elements.river.exports.process.MiscDischargeProcessor" axis="W"/>
     <processor class="org.dive4elements.river.exports.process.ComputedDischargeProcessor" axis="W"/>
diff -r c7ca9c228314 -r 1e30489d0958 artifacts/doc/conf/generators/discharge-diagrams2.xml
--- a/artifacts/doc/conf/generators/discharge-diagrams2.xml	Wed Sep 10 10:01:11 2014 +0200
+++ b/artifacts/doc/conf/generators/discharge-diagrams2.xml	Wed Sep 10 10:01:57 2014 +0200
@@ -3,29 +3,45 @@
 
   <output-generator names="historical_discharge_wq,historical_discharge_wq_chartinfo"
       class="org.dive4elements.river.exports.DischargeGenerator"
-      converter="org.dive4elements.river.exports.DiagramAttributes">
+      converter="org.dive4elements.river.exports.DiagramAttributes"
+      injector="org.dive4elements.river.exports.injector.HistoricalDischargeInjector">
     <title key="chart.historical.discharge.title" default="chart.historical.discharge.title"/>
     &discharge-defaults;
   </output-generator>
 
   <output-generator names="computed_discharge_curve_chartinfo,computed_discharge_curve"
       class="org.dive4elements.river.exports.DischargeGenerator"
-      converter="org.dive4elements.river.exports.DiagramAttributes">
+      converter="org.dive4elements.river.exports.DiagramAttributes"
+      injector="org.dive4elements.river.exports.injector.ComputedDischargeInjector">
     <title key="chart.computed.discharge.curve.title" default="chart.computed.discharge.curve.title"/>
+    <subtitle key="chart.computed.discharge.curve.subtitle" default="-">
+        <arg expr="artifact.river"/>
+        <arg expr="artifact.ld_locations" type="double"/>
+    </subtitle>
     &discharge-defaults;
   </output-generator>
 
   <output-generator names="discharge_curve_chartinfo,discharge_curve"
       class="org.dive4elements.river.exports.DischargeGenerator"
-      converter="org.dive4elements.river.exports.DiagramAttributes">
+      converter="org.dive4elements.river.exports.DiagramAttributes"
+      injector="org.dive4elements.river.exports.injector.DischargeInjector">
     <title key="chart.discharge.curve.title" default="chart.discharge.curve.title"/>
+    <subtitle key="chart.computed.discharge.curve.subtitle" default="-">
+        <arg expr="artifact.river"/>
+        <arg expr="artifact.ld_locations" type="double"/>
+    </subtitle>
     &discharge-defaults;
   </output-generator>
 
   <output-generator names="fix_wq_curve,fix_wq_curve_chartinfo"
       class="org.dive4elements.river.exports.DischargeGenerator"
-      converter="org.dive4elements.river.exports.DiagramAttributes">
-    <title key="chart.fixings.discharge.curve.title" default="chart.fixings.discharge.curve.title"/>
+      converter="org.dive4elements.river.exports.DiagramAttributes"
+      injector="org.dive4elements.river.exports.injector.FixWQInjector">
+      <title key="chart.fixings.discharge.curve.title" default="Fixierungsanalyse W/Q"/>
+    <subtitle key="chart.computed.discharge.curve.subtitle" default="-">
+        <arg expr="artifact.river"/>
+        <arg expr="artifact.ld_locations" type="double"/>
+    </subtitle>
     &discharge-defaults;
   </output-generator>
 


More information about the Dive4Elements-commits mailing list