# HG changeset patch # User Felix Wolfsteller # Date 1321436100 0 # Node ID 6c5229d0b8e576629d99d2b04b047dd6467c6765 # Parent da52932f3bc1b26fb71cec73fd9a37585bb3214f Refactored to use StyledSeriesBuilder to add Points to DataSeries. flys-artifacts/trunk@3262 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r da52932f3bc1 -r 6c5229d0b8e5 flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java --- a/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java Wed Nov 16 09:21:34 2011 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/ComputedDischargeCurveGenerator.java Wed Nov 16 09:35:00 2011 +0000 @@ -131,6 +131,7 @@ XYSeries series = new StyledXYSeries(facet.getDescription(), theme); StyledSeriesBuilder.addPoints(series, data); + addFirstAxisSeries(series, visible); } @@ -147,13 +148,9 @@ ) { int size = wqkms.size(); - double[] res = new double[3]; XYSeries series = new StyledXYSeries(facet.getDescription(), theme); - for (int i = 0; i < size; i++) { - res = wqkms.get(i, res); - series.add(res[1], res[0]); - } + StyledSeriesBuilder.addPointsQW(series, wqkms); addFirstAxisSeries(series, visible); }