Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/process/BedHeightProcessor.java @ 7396:a94b6e057daa
BedHeightProcessor: Finally display heights, not widths.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 17 Oct 2013 16:15:14 +0200 |
parents | 5126cadaed58 |
children | fab06617afb2 |
comparison
equal
deleted
inserted
replaced
7395:5126cadaed58 | 7396:a94b6e057daa |
---|---|
61 Object data = bundle.getData(context); | 61 Object data = bundle.getData(context); |
62 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), | 62 XYSeries series = new StyledXYSeries(bundle.getFacetDescription(), |
63 theme); | 63 theme); |
64 if (data instanceof BedHeightSingleData) { | 64 if (data instanceof BedHeightSingleData) { |
65 BedHeightSingleData bData = (BedHeightSingleData)data; | 65 BedHeightSingleData bData = (BedHeightSingleData)data; |
66 double[] width = bData.getMorphWidths(); | 66 double[] heights = bData.getHeights(); |
67 double[] stations = bData.getStations().toNativeArray(); | 67 double[] stations = bData.getStations().toNativeArray(); |
68 | 68 |
69 logger.debug("doBedheightSingleOut"); | 69 logger.debug("doBedheightSingleOut"); |
70 | 70 |
71 for (int i = 0; i < width.length; i++) { | 71 for (int i = 0; i < heights.length; i++) { |
72 series.add(stations[i], width[i], false); | 72 series.add(stations[i], heights[i], false); |
73 } | 73 } |
74 } else if (data instanceof List<?>) { | 74 } else if (data instanceof List<?>) { |
75 List<BedHeightSingleValue> bData = (List<BedHeightSingleValue>)data; | 75 List<BedHeightSingleValue> bData = (List<BedHeightSingleValue>)data; |
76 | 76 |
77 logger.debug("doBedheightSingleValueOut"); | 77 logger.debug("doBedheightSingleValueOut"); |
78 | 78 |
79 for(BedHeightSingleValue bvalue: bData) { | 79 for(BedHeightSingleValue bvalue: bData) { |
80 series.add(bvalue.getStation(), bvalue.getSoundingWidth()); | 80 series.add(bvalue.getStation(), bvalue.getHeight()); |
81 } | 81 } |
82 } | 82 } |
83 else { | 83 else { |
84 logger.error("Unknown data type " + data.getClass()); | 84 logger.error("Unknown data type " + data.getClass()); |
85 } | 85 } |