Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/CrossSectionWaterLineFacet.java @ 4478:6153c50f78cf
WaterLineArtifact: Added callcontext-parameter to interfaces getWaterLine.
Update all implementations.
The change was done to be able to compute the extreme values during
getWaterLine to access data needed in CrossSectionProfile Diagrams.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 13 Nov 2012 14:46:44 +0100 |
parents | 31168ac9c7e7 |
children | 719680a282e5 |
comparison
equal
deleted
inserted
replaced
4477:79bb64f66c74 | 4478:6153c50f78cf |
---|---|
73 | 73 |
74 WaterLineArtifact lineArtifact = (WaterLineArtifact) artifact; | 74 WaterLineArtifact lineArtifact = (WaterLineArtifact) artifact; |
75 | 75 |
76 if (crossSection != null) { | 76 if (crossSection != null) { |
77 return lineArtifact.getWaterLines(this.getIndex(), | 77 return lineArtifact.getWaterLines(this.getIndex(), |
78 (FastCrossSectionLine) crossSection, (Double) nextKm, (Double) prevKm); | 78 (FastCrossSectionLine) crossSection, (Double) nextKm, |
79 (Double) prevKm, context); | |
79 } | 80 } |
80 else { | 81 else { |
81 return new Lines.LineData(new double[][] {}, 0d,0d); | 82 return new Lines.LineData(new double[][] {}, 0d,0d); |
82 } | 83 } |
83 } | 84 } |