XYItemRenderer r = getRendererForDataset(d);
if (r != null) {
if (isDomainAxis) {
result = Range.combine(result, r.findDomainBounds(d));
} else {
result = Range.combine(result, r.findRangeBounds(d));
}
Collection<XYAnnotation> c = r.getAnnotations();
for (XYAnnotation a : c) {
if (a instanceof XYAnnotationBoundsInfo) {
includedAnnotations.add(a);