Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/LongitudinalSectionGenerator.java @ 6791:dd5355775ce1 longitudinal-symmetry
merge changes from default into longitudinal-symmetrie branch and make it build
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 07 Aug 2013 18:53:15 +0200 |
parents | ef3b02034f6a e568788f519d |
children | 23ab795f2f0e |
comparison
equal
deleted
inserted
replaced
6518:1a7f5d09b9d8 | 6791:dd5355775ce1 |
---|---|
14 import org.dive4elements.river.artifacts.geom.Lines; | 14 import org.dive4elements.river.artifacts.geom.Lines; |
15 import org.dive4elements.river.artifacts.model.AreaFacet; | 15 import org.dive4elements.river.artifacts.model.AreaFacet; |
16 import org.dive4elements.river.artifacts.model.FacetTypes; | 16 import org.dive4elements.river.artifacts.model.FacetTypes; |
17 import org.dive4elements.river.artifacts.model.WKms; | 17 import org.dive4elements.river.artifacts.model.WKms; |
18 import org.dive4elements.river.artifacts.model.WQKms; | 18 import org.dive4elements.river.artifacts.model.WQKms; |
19 | |
20 import org.dive4elements.river.exports.process.Processor; | |
21 import org.dive4elements.river.exports.process.BedDiffHeightYearProcessor; | |
22 import org.dive4elements.river.exports.process.BedDiffYearProcessor; | |
23 import org.dive4elements.river.exports.process.BedheightProcessor; | |
19 import org.dive4elements.river.exports.process.WOutProcessor; | 24 import org.dive4elements.river.exports.process.WOutProcessor; |
25 | |
20 import org.dive4elements.river.jfree.RiverAnnotation; | 26 import org.dive4elements.river.jfree.RiverAnnotation; |
21 import org.dive4elements.river.jfree.StyledAreaSeriesCollection; | 27 import org.dive4elements.river.jfree.StyledAreaSeriesCollection; |
22 import org.dive4elements.river.jfree.StyledXYSeries; | 28 import org.dive4elements.river.jfree.StyledXYSeries; |
23 import org.dive4elements.river.utils.DataUtil; | 29 import org.dive4elements.river.utils.DataUtil; |
24 import org.dive4elements.river.utils.RiverUtils; | 30 import org.dive4elements.river.utils.RiverUtils; |
331 | 337 |
332 if (facet == null) { | 338 if (facet == null) { |
333 return; | 339 return; |
334 } | 340 } |
335 | 341 |
336 WOutProcessor processor = new WOutProcessor(); | 342 WOutProcessor wProcessor = new WOutProcessor(); |
337 if (processor.canHandle(name)) { | 343 Processor bedp = new BedheightProcessor(); |
338 processor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); | 344 Processor bdyProcessor = new BedDiffYearProcessor(); |
345 Processor bdhyProcessor = new BedDiffHeightYearProcessor(); | |
346 | |
347 if (wProcessor.canHandle(name)) { | |
348 wProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); | |
349 } | |
350 else if (bedp.canHandle(name)) { | |
351 bedp.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); | |
352 } | |
353 else if (bdyProcessor.canHandle(name)) { | |
354 bdyProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); | |
355 } | |
356 else if (bdhyProcessor.canHandle(name)) { | |
357 bdhyProcessor.doOut(this, artifactAndFacet, attr, visible, YAXIS.W.idx); | |
339 } | 358 } |
340 else if (name.equals(LONGITUDINAL_Q)) { | 359 else if (name.equals(LONGITUDINAL_Q)) { |
341 doQOut( | 360 doQOut( |
342 (WQKms) artifactAndFacet.getData(context), | 361 (WQKms) artifactAndFacet.getData(context), |
343 artifactAndFacet, | 362 artifactAndFacet, |