# HG changeset patch # User Felix Wolfsteller # Date 1351854659 -3600 # Node ID e62f70c2213d5a094054a4a0a770fc5debc50070 # Parent 9dfec327acc65388caa05cea7797c8d0be41a4f3 StyledSeriesBuilder: New addPointsQW accepting double[]s. diff -r 9dfec327acc6 -r e62f70c2213d flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java --- 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) {