return null;
}
for (int i = nodes.length - 1; i >= 0; i -= 1)
{
final RenderNode node = nodes[i];
final ReportAttributeMap attributes = node.getAttributes();
final Object swingTooltip = attributes.getAttribute(AttributeNames.Swing.NAMESPACE, AttributeNames.Swing.TOOLTIP);
if (swingTooltip != null)
{
return String.valueOf(swingTooltip);
}
final Object htmlTooltip = attributes.getAttribute(AttributeNames.Html.NAMESPACE, AttributeNames.Html.TITLE);
if (htmlTooltip != null)
{
return String.valueOf(htmlTooltip);
}
final Object styleTooltip = node.getStyleSheet().getStyleProperty(ElementStyleKeys.HREF_TITLE);
if (styleTooltip != null)
{
return String.valueOf(styleTooltip);
}
final Object hrefTarget = node.getStyleSheet().getStyleProperty(ElementStyleKeys.HREF_TARGET);
if (hrefTarget != null)
{
return String.valueOf(hrefTarget);
}
if (node instanceof RenderableReplacedContentBox == false)
{
continue;
}
final ImageMap imageMap = RenderUtility.extractImageMap((RenderableReplacedContentBox) node);
if (imageMap == null)
{
continue;
}
final PageFormat pf = physicalPageDrawable.getPageFormat();
final float imageMapX = (float) (x1 - pf.getImageableX() - StrictGeomUtility.toExternalValue(node.getX()));
final float imageMapY = (float) (y1 - pf.getImageableY() - StrictGeomUtility.toExternalValue(node.getY()));
final ImageMapEntry[] imageMapEntries = imageMap.getEntriesForPoint(imageMapX, imageMapY);
for (int j = 0; j < imageMapEntries.length; j++)
{
final ImageMapEntry imageMapEntry = imageMapEntries[j];