comparison artifacts/src/main/java/org/dive4elements/river/exports/process/BedDiffHeightYearProcessor.java @ 8246:aef7542dd3ca

Enable dynamic zoom-range in subtitle.
author Tom Gottfried <tom@intevation.de>
date Tue, 09 Sep 2014 16:29:53 +0200
parents e4606eae8ea5
children cb33de3434a8
comparison
equal deleted inserted replaced
8245:bb00ee1556b9 8246:aef7542dd3ca
87 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); 87 ZoomScale scales = (ZoomScale)fc.get("zoomscale");
88 RiverAccess access = new RiverAccess((D4EArtifact)artifact); 88 RiverAccess access = new RiverAccess((D4EArtifact)artifact);
89 String river = access.getRiverName(); 89 String river = access.getRiverName();
90 90
91 double radius = scales.getRadius(river, start, end); 91 double radius = scales.getRadius(river, start, end);
92 context.putContextValue("radius", radius);
92 generator.addSubtitle(Resources.getMsg( 93 generator.addSubtitle(Resources.getMsg(
93 context.getMeta(), 94 context.getMeta(),
94 I18N_SUBTITLE_RADIUS, 95 I18N_SUBTITLE_RADIUS,
95 new Object[] { radius })); 96 new Object[] { "$RADIUS" }));
96 } 97 }
97 } 98 }
98 99
99 @Override 100 @Override
100 public void doOut( 101 public void doOut(

http://dive4elements.wald.intevation.org