changeset 8078:a403dbdb9e81

Added $RADIUS zoom scale sub title logic to other diagrams.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 07 Aug 2014 20:03:44 +0200
parents 671b244517ed
children 1c57c9dc1661
files artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java	Thu Aug 07 19:59:08 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java	Thu Aug 07 20:03:44 2014 +0200
@@ -96,10 +96,11 @@
             String river = access.getRiverName();
 
             double radius = scales.getRadius(river, start, end);
+            context.putContextValue("radius", radius);
             generator.addSubtitle(Resources.getMsg(
                 context.getMeta(),
                 I18N_SUBTITLE_RADIUS,
-                new Object[] { radius }));
+                new Object[] { "$RADIUS" }));
         }
     }
 
--- a/artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java	Thu Aug 07 19:59:08 2014 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java	Thu Aug 07 20:03:44 2014 +0200
@@ -94,11 +94,11 @@
             String river = access.getRiverName();
 
             double radius = scales.getRadius(river, start, end);
-            logger.debug("add a subtitle");
+            context.putContextValue("radius", radius);
             generator.addSubtitle(Resources.getMsg(
                 context.getMeta(),
                     I18N_SUBTITLE_RADIUS,
-                    new Object[] { radius }));
+                    new Object[] { "$RADIUS" }));
         }
         generator.addAxisSeries(series, axisName, visible);
     }

http://dive4elements.wald.intevation.org