comparison artifacts/src/main/java/org/dive4elements/river/exports/process/WDiffProcessor.java @ 8074:bd0dfa57b1fe

flys/issue1262: Introduce variable $RADIUS to be used in user defined chart sub titles.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 07 Aug 2014 17:24:33 +0200
parents ea6b441b4872
children e1b49fc9d2b5
comparison
equal deleted inserted replaced
8071:6e6506ec0ae0 8074:bd0dfa57b1fe
43 RiverContext fc = (RiverContext)context.globalContext(); 43 RiverContext fc = (RiverContext)context.globalContext();
44 // Adaptive smoothing, based on zoom factor/diagram extents. 44 // Adaptive smoothing, based on zoom factor/diagram extents.
45 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); 45 ZoomScale scales = (ZoomScale)fc.get("zoomscale");
46 RiverAccess access = new RiverAccess((D4EArtifact)artifact); 46 RiverAccess access = new RiverAccess((D4EArtifact)artifact);
47 String river = access.getRiverName(); 47 String river = access.getRiverName();
48 double radius = scales.getRadius(river, start, end);
49 context.putContextValue("radius", radius);
48 50
49 double radius = scales.getRadius(river, start, end);
50 generator.addSubtitle(Resources.getMsg( 51 generator.addSubtitle(Resources.getMsg(
51 context.getMeta(), 52 context.getMeta(),
52 I18N_SUBTITLE_RADIUS, 53 I18N_SUBTITLE_RADIUS,
53 new Object[] { radius })); 54 new Object[] { radius }));
54 } 55 }

http://dive4elements.wald.intevation.org