comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedDiffYearFilterFacet.java @ 7261:a56fe3bc6700

Refactoring: Let RiverAccess.getRiver return an River. Renamed getRiver in getRiverName. Update Callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 08 Oct 2013 14:50:58 +0200
parents 8c169743f4d0
children 1aba75321441
comparison
equal deleted inserted replaced
7260:0b32f8980fed 7261:a56fe3bc6700
51 if(start != null && end != null) { 51 if(start != null && end != null) {
52 RiverContext fc = (RiverContext)context.globalContext(); 52 RiverContext fc = (RiverContext)context.globalContext();
53 // Adaptive smoothing, based on zoom factor/diagram extents. 53 // Adaptive smoothing, based on zoom factor/diagram extents.
54 ZoomScale scales = (ZoomScale)fc.get("zoomscale"); 54 ZoomScale scales = (ZoomScale)fc.get("zoomscale");
55 RiverAccess access = new RiverAccess((D4EArtifact)artifact); 55 RiverAccess access = new RiverAccess((D4EArtifact)artifact);
56 String river = access.getRiver(); 56 String river = access.getRiverName();
57 57
58 double radius = scales.getRadius(river, start, end); 58 double radius = scales.getRadius(river, start, end);
59 BedDiffYearResult oldData = data[index]; 59 BedDiffYearResult oldData = data[index];
60 BedDiffYearResult newData = new BedDiffYearResult(); 60 BedDiffYearResult newData = new BedDiffYearResult();
61 newData.setStart(oldData.getStart()); 61 newData.setStart(oldData.getStart());

http://dive4elements.wald.intevation.org