thomas.deweese wrote:
> 
> You should use SVGDocument.createEvent("MouseEvents") instead
> (I don't think this is actually the problem here but it will
> help future proof your code).
> 
> 
> Also you need to make sure you dispatch the event to the EventTarget
> under the mouse event:
> 
>                 ((EventTarget)targetElement).dispatchEvent(mouseEvt);
> 
>    You can find the element under the mouse via the code I recently
> posted to help hardc0d3r.  Our code to dispatch the DOM events lives
> in batik.bridge.BridgeEventSupport (but it relies on the graphics node
> already being found).
> 
> 

thanks a lot!
now the event is triggered!
but the target that is in the event is the whole SVG. i would like to get
only the element (path, rect, circle, ...) that is under the mousecursor.

i think i will need to look into this BatikBridge you mentioned.
-- 
View this message in context: 
http://www.nabble.com/simulating-batik%27s-DOMMouseEvents-tp18468447p18483902.html
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to