this.svgElement = svgElement;
this.imgElement = imgElement;
}
public void handleEvent(Event e) {
DOMMouseEvent evt = (DOMMouseEvent) e;
DOMMouseEvent newMouseEvent = (DOMMouseEvent)
// DOM Level 2 6.5 cast from Document to DocumentEvent is ok
((DocumentEvent)imgElement.getOwnerDocument()).createEvent("MouseEvents");
newMouseEvent.initMouseEventNS
(XMLConstants.XML_EVENTS_NAMESPACE_URI,
evt.getType(),
evt.getBubbles(),
evt.getCancelable(),
evt.getView(),