Hi Herv�,

Herv� Girod wrote:

I have two questions about Batik. They are about the current 1.6 version, but I think they also apply to the previous version :
I write an application using Batik at its core, to show and modify SVG images. I have sometimes an IllegalComponentStateException "component must be showing on the screen to determine its location" when loading a SVG file in a JSVGCanvas, where the class MouseMoveRunnable (used internally in JSVGComponent) perform the run() method (the code is : eventDispatcher.mouseMoved(event)). Is it due to Batik, or do I use wrongly the JSVGCanvas class ?

I suspect that it is something in your code but I'm not sure how it would happen. Are you artificially dispatching events to the canvas? There is even a check for the component being visible before we call getLocationOnScreen so I have a really hard time understanding where this one comes from.

When a SVG document is generated (for example, with Java code, or a WMF file), one output SVG clippath is generated for each input path, even if the input path is not clipped. This leads to a lot of (unnecessary ?) clippings in the SVG output document. By subclassing the SVGGraphics2D class, I am able to generate only the few necessary output clippings (the output path is clipped only if the corresponding input path is clipped)

How do you determine if the path being drawn needs to be clipped?

but may be generating one clippath for each input path is necessary for reasons I don't see yet ?

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



Reply via email to