comparison artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedDifferenceEpochGenerator.java @ 5867:59ff03ff48f1

River artifacts: Renamed FLYSArtifact(Collection) to D4EArtifact(Collection).
author Sascha L. Teichmann <teichmann@intevation.de>
date Sun, 28 Apr 2013 15:23:01 +0200
parents f2e46a668fe6
children af13ceeba52a
comparison
equal deleted inserted replaced
5866:9a6741ccf6d4 5867:59ff03ff48f1
12 import org.jfree.data.xy.XYSeries; 12 import org.jfree.data.xy.XYSeries;
13 import org.w3c.dom.Document; 13 import org.w3c.dom.Document;
14 14
15 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet; 15 import org.dive4elements.artifactdatabase.state.ArtifactAndFacet;
16 import org.dive4elements.artifactdatabase.state.Facet; 16 import org.dive4elements.artifactdatabase.state.Facet;
17 import org.dive4elements.river.artifacts.FLYSArtifact; 17 import org.dive4elements.river.artifacts.D4EArtifact;
18 import org.dive4elements.river.artifacts.access.FlowVelocityAccess; 18 import org.dive4elements.river.artifacts.access.FlowVelocityAccess;
19 import org.dive4elements.river.artifacts.model.FacetTypes; 19 import org.dive4elements.river.artifacts.model.FacetTypes;
20 import org.dive4elements.river.artifacts.model.WKms; 20 import org.dive4elements.river.artifacts.model.WKms;
21 import org.dive4elements.river.artifacts.model.minfo.BedDiffEpochResult; 21 import org.dive4elements.river.artifacts.model.minfo.BedDiffEpochResult;
22 import org.dive4elements.river.exports.StyledSeriesBuilder; 22 import org.dive4elements.river.exports.StyledSeriesBuilder;
110 else if (getXBounds(0) != null && getDomainAxisRange() == null) { 110 else if (getXBounds(0) != null && getDomainAxisRange() == null) {
111 context.putContextValue("startkm", getXBounds(0).getLower()); 111 context.putContextValue("startkm", getXBounds(0).getLower());
112 context.putContextValue("endkm", getXBounds(0).getUpper()); 112 context.putContextValue("endkm", getXBounds(0).getUpper());
113 } 113 }
114 else if (getXBounds(0) == null && getDomainAxisRange() == null) { 114 else if (getXBounds(0) == null && getDomainAxisRange() == null) {
115 FLYSArtifact artifact = (FLYSArtifact)bundle.getArtifact(); 115 D4EArtifact artifact = (D4EArtifact)bundle.getArtifact();
116 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context); 116 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
117 context.putContextValue("startkm", access.getLowerKM()); 117 context.putContextValue("startkm", access.getLowerKM());
118 context.putContextValue("endkm", access.getUpperKM()); 118 context.putContextValue("endkm", access.getUpperKM());
119 } 119 }
120 else if (getXBounds(0) == null && getDomainAxisRange() != null){ 120 else if (getXBounds(0) == null && getDomainAxisRange() != null){
121 FLYSArtifact artifact = (FLYSArtifact)bundle.getArtifact(); 121 D4EArtifact artifact = (D4EArtifact)bundle.getArtifact();
122 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context); 122 FlowVelocityAccess access = new FlowVelocityAccess(artifact, context);
123 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM()); 123 Bounds b = new DoubleBounds(access.getLowerKM(), access.getUpperKM());
124 Bounds bounds = 124 Bounds bounds =
125 calculateZoom(b, getDomainAxisRange()); 125 calculateZoom(b, getDomainAxisRange());
126 context.putContextValue("startkm", bounds.getLower()); 126 context.putContextValue("startkm", bounds.getLower());

http://dive4elements.wald.intevation.org