# HG changeset patch # User Sascha L. Teichmann # Date 1407434624 -7200 # Node ID a403dbdb9e81001a78f41128c234a7ec75e5de43 # Parent 671b244517ed432b033b63fb8b94bc657df65440 Added $RADIUS zoom scale sub title logic to other diagrams. diff -r 671b244517ed -r a403dbdb9e81 artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffYearProcessor.java --- 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" })); } } diff -r 671b244517ed -r a403dbdb9e81 artifacts/src/main/java/org/dive4elements/river/exports/process/FlowVelocityProcessor.java --- 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); }