Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java @ 3395:2a8919e0ed28
Cosmetics, doc.
flys-artifacts/trunk@5025 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 17 Jul 2012 18:40:25 +0000 |
parents | f091f2f55f88 |
children | e62f70c2213d |
comparison
equal
deleted
inserted
replaced
3394:f091f2f55f88 | 3395:2a8919e0ed28 |
---|---|
72 for (int i = 0; i < size; i++) { | 72 for (int i = 0; i < size; i++) { |
73 series.add(wkms.getKm(i), wkms.getW(i), false); | 73 series.add(wkms.getKm(i), wkms.getW(i), false); |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 | |
78 /** | |
79 * Add points to dataset with an offset (shift all points by given amount). | |
80 * @param series series to add data to. | |
81 * @param wkms WKms of which the Ws will be shifted. | |
82 * @param off the offset. | |
83 */ | |
77 public static void addUpperBand(XYSeries series, WKms wkms, double off) { | 84 public static void addUpperBand(XYSeries series, WKms wkms, double off) { |
78 if (wkms == null) { | 85 if (wkms == null) { |
79 return; | 86 return; |
80 } | 87 } |
81 | 88 |
84 for (int i = 0; i < size; i++) { | 91 for (int i = 0; i < size; i++) { |
85 series.add(wkms.getKm(i), wkms.getW(i)+off, false); | 92 series.add(wkms.getKm(i), wkms.getW(i)+off, false); |
86 } | 93 } |
87 } | 94 } |
88 | 95 |
96 | |
97 /** | |
98 * Add points to dataset with an offset (shift all points 'down' by given | |
99 * amount). | |
100 * @param series series to add data to. | |
101 * @param wkms WKms of which the Ws will be shifted. | |
102 * @param off the offset. | |
103 */ | |
89 public static void addLowerBand(XYSeries series, WKms wkms, double off) { | 104 public static void addLowerBand(XYSeries series, WKms wkms, double off) { |
90 addUpperBand(series, wkms, -off); | 105 addUpperBand(series, wkms, -off); |
91 } | 106 } |
107 | |
92 | 108 |
93 /** | 109 /** |
94 * Add points to series (km to 1st dim, q to 2nd dim). | 110 * Add points to series (km to 1st dim, q to 2nd dim). |
95 * | 111 * |
96 * @param series Series to add points to. | 112 * @param series Series to add points to. |