final RectangleEdge xAxisLocation = plot.getDomainAxisEdge();
final RectangleEdge yAxisLocation = plot.getRangeAxisEdge();
for (final Iterator iter = items.iterator(); iter.hasNext();) {
final XYDataItem item = (XYDataItem) iter.next();
// get the data point...
final double x1 = item.getX().doubleValue();
final Number yValue = item.getY();
if (yValue == null) {
s.setLastPointGood(false);
continue;
}
final double y1 = item.getY().doubleValue();
final double transX1 = domainAxis.valueToJava2D(x1, dataArea,
xAxisLocation);
final double transY1 = rangeAxis.valueToJava2D(y1, dataArea,
yAxisLocation);