} else {
return false;
}
for (final Iterator iter = series.iterator(); iter.hasNext();) {
final XYSeries s = (XYSeries) iter.next();
final List items = s.getItems();
if (items.size() == 0) {
continue;
}
int fromIndex = Collections.binarySearch(items, new XYDataItem(
lowerBound, 0));
if (fromIndex < 0) {
fromIndex = -fromIndex - 2;
}
if (fromIndex < 0) {
fromIndex = 0;
}
int toIndex = Collections.binarySearch(items, new XYDataItem(
upperBound, 0));
if (toIndex < 0) {
toIndex = -toIndex;
}
if (toIndex >= items.size()) {
toIndex = items.size() - 1;
}
final List subSeries = items.subList(fromIndex, toIndex);
renderer.drawSeriesItems(gc, dataArea, info, this, domainAxis,
rangeAxis, dataset, dataset.indexOf(s.getKey()), subSeries);
}
return true;
}