Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java @ 4364:e62f70c2213d
StyledSeriesBuilder: New addPointsQW accepting double[]s.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 02 Nov 2012 12:10:59 +0100 |
parents | 2a8919e0ed28 |
children | 7e3dc021452a |
comparison
equal
deleted
inserted
replaced
4363:9dfec327acc6 | 4364:e62f70c2213d |
---|---|
177 | 177 |
178 /** | 178 /** |
179 * Add points to series (q to 1st dim, w to 2nd dim). | 179 * Add points to series (q to 1st dim, w to 2nd dim). |
180 * | 180 * |
181 * @param series Series to add points to. | 181 * @param series Series to add points to. |
182 * @param wqkms WQKms to add to series. | |
183 */ | |
184 public static void addPointsQW(XYSeries series, double[] qs, double ws[]) { | |
185 if (ws == null || qs == null) { | |
186 return; | |
187 } | |
188 | |
189 int size = qs.length; | |
190 | |
191 for (int i = 0; i < size; i++) { | |
192 series.add(qs[i], ws[i]); | |
193 } | |
194 } | |
195 | |
196 | |
197 /** | |
198 * Add points to series (q to 1st dim, w to 2nd dim). | |
199 * | |
200 * @param series Series to add points to. | |
182 * @param wwqq WWQQ to add to series. | 201 * @param wwqq WWQQ to add to series. |
183 */ | 202 */ |
184 public static void addPoints(XYSeries series, WWQQ wwqq) { | 203 public static void addPoints(XYSeries series, WWQQ wwqq) { |
185 if (wwqq == null) { | 204 if (wwqq == null) { |
186 return; | 205 return; |