Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 5c7b4f4a2e6c |
children | 3ac9cb0029b2 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/StyledSeriesBuilder.java Thu Jan 18 20:12:01 2018 +0100 @@ -40,7 +40,8 @@ /** - * Add points to series, create gaps if certain distance between points is met. + * Add points to series, create gaps if certain distance + * between points is met. * * @param series Series to add points to. * @param points Points to add to series, points[0] to 1st dim, points[1] @@ -48,9 +49,15 @@ * @param skipNANs if true, skip NAN values in points parameter. Otherwise, * the NaNs lead to gaps in graph. * @param distance if two consecutive entries in points[0] are more - * than distance apart, create a NaN value to skip in display. + * than distance apart, create a NaN value to skip + * in display. */ - public static void addPoints(XYSeries series, double[][] points, boolean skipNANs, double distance) { + public static void addPoints( + XYSeries series, + double[][] points, + boolean skipNANs, + double distance + ) { if (points == null || points.length <= 1) { return; } @@ -108,7 +115,11 @@ * to 2nd dim. * @param skipNANs if true, skip NAN values in points parameter. */ - public static void addPoints(XYSeries series, double[][] points, boolean skipNANs) { + public static void addPoints( + XYSeries series, + double[][] points, + boolean skipNANs + ) { if (points == null || points.length <= 1) { return; } @@ -218,7 +229,8 @@ double prevQ; if (wqkms.getKm(i + 1) < wqkms.getKm(i)) { /* Depending on the data direction the previous km / q - * might have a larger index when we draw right to left data. */ + * might have a larger index when we draw + * right to left data. */ prevX = wqkms.getKm(i + 1); prevQ = wqkms.getQ(i + 1); } else { @@ -260,7 +272,12 @@ * @param wAdd Value to add to each Q while adding to series. * @param wScale multiply with */ - public static void addPointsQW(XYSeries series, double[][] qws, double wTrans, double wScale) { + public static void addPointsQW( + XYSeries series, + double[][] qws, + double wTrans, + double wScale + ) { if (qws == null || qws.length == 0) { return; } @@ -281,7 +298,12 @@ * @param wAdd Value to add to each Q while adding to series. * @param wScale multiply with */ - public static void addPointsQW(XYSeries series, WQKms wqkms, double wTrans, double wScale) { + public static void addPointsQW( + XYSeries series, + WQKms wqkms, + double wTrans, + double wScale + ) { if (wqkms == null) { return; } @@ -359,7 +381,8 @@ * between the newly created and the given series. */ public static XYSeries createGroundAtInfinity(XYSeries series) { - XYSeries ground = new XYSeries(series.getKey() + /** TODO rand + */ "INF"); + XYSeries ground = + new XYSeries(series.getKey() + /** TODO rand + */ "INF"); ground.add(series.getMinX(), -BIG_DOUBLE_VALUE); ground.add(series.getMaxX(), -BIG_DOUBLE_VALUE); return ground; @@ -371,7 +394,8 @@ * between the newly created and the given series. */ public static XYSeries createCeilingAtInfinity(XYSeries series) { - XYSeries ground = new XYSeries(series.getKey() + /** TODO rand + */ "INF"); + XYSeries ground = + new XYSeries(series.getKey() + /** TODO rand + */ "INF"); ground.add(series.getMinX(), BIG_DOUBLE_VALUE); ground.add(series.getMaxX(), BIG_DOUBLE_VALUE); return ground;