Mercurial > dive4elements > river
diff flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java @ 3076:5642a83420f2
FLYS artifacts: Removed trailing whitespace.
flys-artifacts/trunk@4670 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 15 Jun 2012 09:30:07 +0000 |
parents | b75681c09ef8 |
children | e3c70271d50f |
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java Thu Jun 14 15:46:20 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/jfree/StableXYDifferenceRenderer.java Fri Jun 15 09:30:07 2012 +0000 @@ -280,7 +280,7 @@ return this.labelFont; } - + /** Set color with which to paint label. */ public void setLabelColor(Color color) { this.labelColor = color; @@ -637,7 +637,7 @@ for (; i < ni; ++i) { double x = dataset.getXValue(0, i); double y = dataset.getYValue(0, i); - if (!Double.isNaN(x) + if (!Double.isNaN(x) && !Double.isNaN(y) && add(six, x)) { siy.add(y); @@ -708,7 +708,7 @@ if (SIX > 0) { // should always be true double yns = Linear.linear( xns, - six.getQuick(SIX-1), x, + six.getQuick(SIX-1), x, siy.getQuick(SIX-1), y); if (debug) { log.debug("intersection at: " + yns); @@ -786,7 +786,7 @@ for (; i < N; ++i) { double x = dataset.getXValue(0, i); double y = dataset.getXValue(0, i); - if (!Double.isNaN(x) + if (!Double.isNaN(x) && !Double.isNaN(y) && add(six, x)) { siy.add(y); @@ -821,7 +821,7 @@ public static List<XYDataset> splitByNaNs(XYDataset dataset) { switch (dataset.getSeriesCount()) { - case 0: + case 0: return Collections.emptyList(); case 1: return splitByNaNsOneSeries(dataset); @@ -863,7 +863,7 @@ switch (pass) { case 0: for (XYDataset ds: splitByNaNs(dataset)) { - drawItemPass0(g2, dataArea, info, + drawItemPass0(g2, dataArea, info, plot, domainAxis, rangeAxis, ds, series, item, crosshairState); }