Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.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 | e3c70271d50f |
children | a5f65e8983be a65eb6d44122 |
comparison
equal
deleted
inserted
replaced
3394:f091f2f55f88 | 3395:2a8919e0ed28 |
---|---|
500 * be called before the first item is rendered, giving the renderer an | 500 * be called before the first item is rendered, giving the renderer an |
501 * opportunity to initialise any state information it wants to maintain. | 501 * opportunity to initialise any state information it wants to maintain. |
502 * The renderer can do nothing if it chooses. | 502 * The renderer can do nothing if it chooses. |
503 * | 503 * |
504 * @param g2 the graphics device. | 504 * @param g2 the graphics device. |
505 * @param dataArea the area inside the axes. | 505 * @param dataArea the (visible) area inside the axes. |
506 * @param plot the plot. | 506 * @param plot the plot. |
507 * @param data the data. | 507 * @param data the data. |
508 * @param info an optional info collection object to return data back to | 508 * @param info an optional info collection object to return data back to |
509 * the caller. | 509 * the caller. |
510 * | 510 * |
530 */ | 530 */ |
531 public int getPassCount() { | 531 public int getPassCount() { |
532 return 2; | 532 return 2; |
533 } | 533 } |
534 | 534 |
535 | |
536 /** | |
537 * Adds x/y data to series. | |
538 */ | |
535 private static final void addSeries( | 539 private static final void addSeries( |
536 DefaultXYDataset ds, | 540 DefaultXYDataset ds, |
537 Comparable key, | 541 Comparable key, |
538 TDoubleArrayList xs, | 542 TDoubleArrayList xs, |
539 TDoubleArrayList ys | 543 TDoubleArrayList ys |
827 return splitByNaNsOneSeries(dataset); | 831 return splitByNaNsOneSeries(dataset); |
828 default: // two or more | 832 default: // two or more |
829 return splitByNaNsTwoSeries(dataset); | 833 return splitByNaNsTwoSeries(dataset); |
830 } | 834 } |
831 } | 835 } |
836 | |
832 | 837 |
833 /** | 838 /** |
834 * Draws the visual representation of a single data item. | 839 * Draws the visual representation of a single data item. |
835 * | 840 * |
836 * @param g2 the graphics device. | 841 * @param g2 the graphics device. |