Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/exports/ComputedDischargeCurveGenerator.java @ 6789:7a02e613a61c
Cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 08:33:38 +0200 |
parents | aee8cb5c801a |
children | 30507f19cbe7 |
comparison
equal
deleted
inserted
replaced
6788:6587058498f1 | 6789:7a02e613a61c |
---|---|
102 | 102 |
103 /** | 103 /** |
104 * Create Y (range) axis for given index, here with a special axis | 104 * Create Y (range) axis for given index, here with a special axis |
105 * that depends on other axis (does translation and scaling for | 105 * that depends on other axis (does translation and scaling for |
106 * special case at gauge in cm). | 106 * special case at gauge in cm). |
107 * @return A NumberAxis, possibly scaled. | |
107 */ | 108 */ |
108 @Override | 109 @Override |
109 protected NumberAxis createYAxis(int index) { | 110 protected NumberAxis createYAxis(int index) { |
110 if (index == 0) { | 111 if (index == 0) { |
111 firstYAxis = super.createYAxis(0); | 112 firstYAxis = super.createYAxis(0); |
210 } | 211 } |
211 | 212 |
212 | 213 |
213 /** | 214 /** |
214 * Add WQ Data to plot. | 215 * Add WQ Data to plot. |
215 * @param wqkms data as double[][] | 216 * @param wq data as double[][] |
216 */ | 217 */ |
217 protected void doWQOut( | 218 protected void doWQOut( |
218 Object wqkms, | 219 Object wq, |
219 ArtifactAndFacet aaf, | 220 ArtifactAndFacet aaf, |
220 Document theme, | 221 Document theme, |
221 boolean visible | 222 boolean visible |
222 ) { | 223 ) { |
223 logger.debug("ComputedDischargeCurveGenerator: doWQOut"); | 224 logger.debug("ComputedDischargeCurveGenerator: doWQOut"); |
224 double [][] data = (double [][]) wqkms; | 225 double [][] data = (double [][]) wq; |
225 | 226 |
226 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); | 227 XYSeries series = new StyledXYSeries(aaf.getFacetDescription(), theme); |
227 StyledSeriesBuilder.addPoints(series, data, true); | 228 StyledSeriesBuilder.addPoints(series, data, true); |
228 | 229 |
229 addAxisSeries(series, YAXIS.W.idx, visible); | 230 addAxisSeries(series, YAXIS.W.idx, visible); |