Hi,
I'm noticing a strange effect (at least to me it's strange) when displaying an SVG:
I use a JSVGCanvas to display an SVG document. The document shows up ok but when I pass the mouse over the canvas the cpu usage goes to 100% and it stays there for a couple of seconds (well, if the SVG is large enough, it stays there for a couple of minutes). This happens after the image is displayed on the canvas.
This happens even if I don't set any listeners on the canvas. I've also tried to set the ALWAYS_STATIC flag...
I'm using Batik 1.5.
Has anyone experienced anything similar? I've searched the archives but couldn't find an answer for this...
This is because events are still enabled at some level (so for example to do text selection) - SVG requires walking the rendering tree in reverse order to discover who recieves each event which can get expensive. If you really don't want this you can construct the JSVGCanvas with events disabled:
JSVGCanvas c = new JSVGCanvas(null /*userAgent*/, false /* eventsEnabled */, false /* selectableText */);
Right now this can only be done at construction time...
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]