comparison flys-artifacts/src/main/java/de/intevation/flys/exports/minfo/BedDifferenceEpochGenerator.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 32f90baf4afa
children 05eeedc5b156
comparison
equal deleted inserted replaced
4825:f8217f1fef2e 4826:a3dc382bc1ca
96 context.putContextValue("startkm", getXBounds(0).getLower()); 96 context.putContextValue("startkm", getXBounds(0).getLower());
97 context.putContextValue("endkm", getXBounds(0).getUpper()); 97 context.putContextValue("endkm", getXBounds(0).getUpper());
98 } 98 }
99 else if (getXBounds(0) == null && getDomainAxisRange() == null) { 99 else if (getXBounds(0) == null && getDomainAxisRange() == null) {
100 FLYSArtifact artifact = (FLYSArtifact)bundle.getArtifact(); 100 FLYSArtifact artifact = (FLYSArtifact)bundle.getArtifact();
101 FlowVelocityAccess access = new FlowVelocityAccess(artifact); 101 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
102 context.putContextValue("startkm", access.getLowerKM()); 102 context.putContextValue("startkm", access.getLowerKM());
103 context.putContextValue("endkm", access.getUpperKM()); 103 context.putContextValue("endkm", access.getUpperKM());
104 } 104 }
105 else if (getXBounds(0) == null && getDomainAxisRange() != null){ 105 else if (getXBounds(0) == null && getDomainAxisRange() != null){
106 FLYSArtifact artifact = (FLYSArtifact)bundle.getArtifact(); 106 FLYSArtifact artifact = (FLYSArtifact)bundle.getArtifact();
107 FlowVelocityAccess access = new FlowVelocityAccess(artifact); 107 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
108 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM()); 108 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM());
109 Bounds bounds = 109 Bounds bounds =
110 calculateZoom(b, getDomainAxisRange()); 110 calculateZoom(b, getDomainAxisRange());
111 context.putContextValue("startkm", bounds.getLower()); 111 context.putContextValue("startkm", bounds.getLower());
112 context.putContextValue("endkm", bounds.getUpper()); 112 context.putContextValue("endkm", bounds.getUpper());

http://dive4elements.wald.intevation.org