You are right. Registering a listener with the root node, it gets all the fired events so at some points they get intercpeted.
if for 'pointer-events' you mean standard swing mouse events, I guess that the standard mouse interactors (zoom, apn, etc.) would be listeing for them. Any idea on how to find out where the problem is? I'm not too proficient in client side programming :-( Thanks On Tuesday 09 November 2004 15:22, Thomas DeWeese wrote: > Alessandro Di Bella wrote: > > This is what i do, see the first line of the code snippet: > > svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); > > Sorry, missed that. > > > Can I register a swing mouse listener with the canvas and from the event > > source drill down until the dom node? > > You can, but this is very non-trivial (you need to walk the GVT > tree). I would suggest registering an event listener on the root > SVG node and have it print out every event it gets. My first > suspicion is that some other element is stealing your event. > > Are you using the 'pointer-events' property anywhere? This could > turn off event handling for portions of the graphics tree. > > > On Tuesday 09 November 2004 15:01, Thomas DeWeese wrote: > >>Alessandro Di Bella wrote: > >>>I did what you suggested but I must have made a mistake because > >>>it doesn't seem to work. > >> > >> [...] > >> > >>>Debugging through the app, I can see that the listeners are set but > >>>nothing happens when I click on the element. > >>> > >>>I reckon that the events are not fired. > >> > >> Ahh, you probably need to tell the Canvas that you want your > >>document to be dynamic, see: > >> batik.swing.svg.JSVGComponent.setDocumentState > >> > >> BTW you should really use Element.getAttributeNS instead of > >>looping over all the attributes. This will be _much_ faster! > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]