Mercurial > dive4elements > river
changeset 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 | 9dfec327acc6 |
children | 7e3dc021452a |
files | flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java Fri Nov 02 12:10:12 2012 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java Fri Nov 02 12:10:59 2012 +0100 @@ -179,6 +179,25 @@ * Add points to series (q to 1st dim, w to 2nd dim). * * @param series Series to add points to. + * @param wqkms WQKms to add to series. + */ + public static void addPointsQW(XYSeries series, double[] qs, double ws[]) { + if (ws == null || qs == null) { + return; + } + + int size = qs.length; + + for (int i = 0; i < size; i++) { + series.add(qs[i], ws[i]); + } + } + + + /** + * Add points to series (q to 1st dim, w to 2nd dim). + * + * @param series Series to add points to. * @param wwqq WWQQ to add to series. */ public static void addPoints(XYSeries series, WWQQ wwqq) {