Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/exports/StyledSeriesBuilder.java @ 1812:dd084cf3f284
Refactored to allow mainvalues in discharge curve diagrams, too.
flys-artifacts/trunk@3141 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 02 Nov 2011 12:12:48 +0000 |
parents | e0e5a5b51a40 |
children | 6f047a407f84 |
comparison
equal
deleted
inserted
replaced
1811:4ee833095e75 | 1812:dd084cf3f284 |
---|---|
49 for (int i = 0; i < size; i++) { | 49 for (int i = 0; i < size; i++) { |
50 series.add(wkms.getKm(i), wkms.getW(i), false); | 50 series.add(wkms.getKm(i), wkms.getW(i), false); |
51 } | 51 } |
52 } | 52 } |
53 | 53 |
54 | |
54 /** | 55 /** |
55 * Add points to series (w to 1st dim, km to 2nd dim). | 56 * Add points to series (w to 1st dim, km to 2nd dim). |
56 * | 57 * |
57 * @param series Series to add points to. | 58 * @param series Series to add points to. |
58 * @param points Points to add to series. | 59 * @param points Points to add to series. |
62 | 63 |
63 for (int i = 0; i < size; i++) { | 64 for (int i = 0; i < size; i++) { |
64 series.add(wqkms.getKm(i), wqkms.getQ(i), false); | 65 series.add(wqkms.getKm(i), wqkms.getQ(i), false); |
65 } | 66 } |
66 } | 67 } |
68 | |
69 | |
70 /** | |
71 * Add points to series (q to 1st dim, w to 2nd dim). | |
72 * | |
73 * @param series Series to add points to. | |
74 * @param points Points to add to series. | |
75 */ | |
76 public static void addPointsQW(XYSeries series, WQKms wqkms) { | |
77 int size = wqkms.size(); | |
78 | |
79 for (int i = 0; i < size; i++) { | |
80 series.add(wqkms.getQ(i), wqkms.getW(i)); | |
81 } | |
82 } | |
67 } | 83 } |
68 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 84 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |