public CursorMouseOverListener(UserAgent ua) {
userAgent = ua;
}
public void handleEvent(Event evt) {
SVGAElement elt = null;
for (Element e = (Element)evt.getTarget();
e != null;
e = HiddenChildElementSupport.getParentElement(e)) {
if (e instanceof SVGAElement) {
elt = (SVGAElement)e;
break;
}
}
Cursor cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
userAgent.setSVGCursor(cursor);
if (elt != null) {
userAgent.displayMessage(elt.getHref().getBaseVal());
}
}