Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/ComputationRangeState.java @ 8765:a5e450af498b
(issue1838) Remove method in RiverUtils.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 17 Aug 2015 11:06:23 +0200 |
parents | b8493c4bdf0c |
children | 1116079e6624 |
comparison
equal
deleted
inserted
replaced
8764:d5917ff74d8a | 8765:a5e450af498b |
---|---|
22 | 22 |
23 import org.dive4elements.river.artifacts.D4EArtifact; | 23 import org.dive4elements.river.artifacts.D4EArtifact; |
24 | 24 |
25 import org.dive4elements.river.artifacts.model.FacetTypes; | 25 import org.dive4elements.river.artifacts.model.FacetTypes; |
26 import org.dive4elements.river.artifacts.resources.Resources; | 26 import org.dive4elements.river.artifacts.resources.Resources; |
27 | 27 import org.dive4elements.river.artifacts.access.RiverAccess; |
28 import org.dive4elements.river.utils.RiverUtils; | |
29 | 28 |
30 | 29 |
31 /** | 30 /** |
32 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 31 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
33 */ | 32 */ |
121 | 120 |
122 } | 121 } |
123 | 122 |
124 @Override | 123 @Override |
125 protected double[] getMinMax(Artifact artifact) { | 124 protected double[] getMinMax(Artifact artifact) { |
126 D4EArtifact flysArtifact = (D4EArtifact) artifact; | 125 return new RiverAccess((D4EArtifact)artifact).getRiver() |
127 return RiverUtils.getRiverMinMax(flysArtifact); | 126 .determineMinMaxDistance(); |
128 } | 127 } |
129 | 128 |
130 | 129 |
131 protected double getDefaultStep() { | 130 protected double getDefaultStep() { |
132 return DEFAULT_STEP; | 131 return DEFAULT_STEP; |