Hello !
 
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 ?
 
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),  but may be generating one clippath for each input path is necessary for reasons I don't see yet ? 
 
Thanks,
 
Herv�

Reply via email to