drawItemLabel(g2, orientation, dataset, series, item, transY, transX, false);
}
}
// setup for collecting optional entity info...
EntityCollection entities = null;
if (info != null)
{
entities = info.getOwner().getEntityCollection();
}
// add an entity for the item...
if (entities != null)
{
String tip = null;
final XYToolTipGenerator generator = getToolTipGenerator(series, item);
if (generator != null)
{
tip = generator.generateToolTip(dataset, series, item);
}
String url = null;
if (getURLGenerator() != null)
{
url = getURLGenerator().generateURL(dataset, series, item);
}
final XYItemEntity entity = new XYItemEntity(circle, dataset, series, item, tip, url);
entities.add(entity);
}
final int domainAxisIndex = plot.getDomainAxisIndex(domainAxis);
final int rangeAxisIndex = plot.getRangeAxisIndex(rangeAxis);
updateCrosshairValues(crosshairState, x, y, domainAxisIndex, rangeAxisIndex, transX, transY, orientation);