hello,

i use batik to rasterize an svg to a bufferedimage, which obviously looses
all of the nice interactivity.

so EventListeners like this will obviously not work anymore:

EventListener el = new EventListener() { 
            public void handleEvent(Event evt) {         

            }
}; 
someNode.addEventListener("click", el, false); 

now since i still would like to use interaction like this in the
bufferedimage, i thought of faking these Events.

whenever an AWT-Event occurs on the BufferedImage i will need to translate
it into a DOMMouseEvent and dispatch that to the original SVGDocument, from
which the BufferedImage was rasterized and still exists in memory.

so what i did was use the DOMMouseEvent.initMouseEventNS(...) function to
create a DOMMouseEvent and then dispatch that on the root-node of the
svgdocument.

the problem is, that the eventhandlers are just not triggered. but i could
yet not find out where exactly they get lost. 

thanks for any help on this!

-- 
View this message in context: 
http://www.nabble.com/simulating-batik%27s-DOMMouseEvents-tp18468447p18468447.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