Hi Vincent, "V. de Weger" <[EMAIL PROTECTED]> wrote on 08/31/2006 03:21:17 PM:
> I've found a nice article yesterday about event listeners > (http://un.regne.net/dotclear/index.php/2004/10/27/42-finests-java-beans-with- > inkscape-svgs-and-batik). It is a nice article, I would avoid setting transforms on GraphicsNodes (instead set transform attribute on DOM node). But otherwise it does a good job of motivating some of the cool applications you can build with Batik as your graphics engine. > In that article they call addEventListener from gvtRenderingCompleted. I > looked in my own code and saw I call them from managerStarted. I think > managerStarted is not the right place, but I can't find anything about it in > the documentation. In fact you can call addEventListener (to the DOM) before you even give the document to the canvas (assuming you give a Document instead of a URL, if you give a URL you can add listeners in the document loaded callback if you wanted to). Manager started is a little on the late side but I doubt you would ever miss any events. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
