comparison flys-artifacts/src/main/java/de/intevation/flys/exports/FlowVelocityGenerator.java @ 4826:a3dc382bc1ca

BedHeightAccess, FlowVelocityAccess, SedimentLoadAccess: Inherit from RangeAccess. Update callers.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 21 Jan 2013 17:26:08 +0100
parents d0b9b77fff9f
children 38acd82feeac
comparison
equal deleted inserted replaced
4825:f8217f1fef2e 4826:a3dc382bc1ca
217 context.putContextValue("startkm", getXBounds(0).getLower()); 217 context.putContextValue("startkm", getXBounds(0).getLower());
218 context.putContextValue("endkm", getXBounds(0).getUpper()); 218 context.putContextValue("endkm", getXBounds(0).getUpper());
219 } 219 }
220 else if (getXBounds(0) == null && getDomainAxisRange() == null) { 220 else if (getXBounds(0) == null && getDomainAxisRange() == null) {
221 FLYSArtifact artifact = (FLYSArtifact)artifactAndFacet.getArtifact(); 221 FLYSArtifact artifact = (FLYSArtifact)artifactAndFacet.getArtifact();
222 FlowVelocityAccess access = new FlowVelocityAccess(artifact); 222 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
223 context.putContextValue("startkm", access.getLowerKM()); 223 context.putContextValue("startkm", access.getLowerKM());
224 context.putContextValue("endkm", access.getUpperKM()); 224 context.putContextValue("endkm", access.getUpperKM());
225 } 225 }
226 else if (getXBounds(0) == null && getDomainAxisRange() != null){ 226 else if (getXBounds(0) == null && getDomainAxisRange() != null){
227 FLYSArtifact artifact = (FLYSArtifact)artifactAndFacet.getArtifact(); 227 FLYSArtifact artifact = (FLYSArtifact)artifactAndFacet.getArtifact();
228 FlowVelocityAccess access = new FlowVelocityAccess(artifact); 228 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
229 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM()); 229 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM());
230 Bounds bounds = 230 Bounds bounds =
231 calculateZoom(b, getDomainAxisRange()); 231 calculateZoom(b, getDomainAxisRange());
232 context.putContextValue("startkm", bounds.getLower()); 232 context.putContextValue("startkm", bounds.getLower());
233 context.putContextValue("endkm", bounds.getUpper()); 233 context.putContextValue("endkm", bounds.getUpper());

http://dive4elements.wald.intevation.org