Hi Rob, Rob Davis-5 <[EMAIL PROTECTED]> wrote on 06/11/2008 06:55:41 AM:
> Boot the CSS and DOM in batik so that the SVG document is fully parsed. This > will give you access to the elements as W3C DOM Elements and as Batik > elements (where you can apply the getBBox) > > Use a W3C DOM DOMTreeWalker to recursively iterate through each element. > Either using your own code or there is a batik one provided in the source I > believe. > > For each element you iterate over, use the Context Bridge to obtain the > batik element associated with the W3C DOM XML Element and with that you can > call the getBBox command. You don't need to (and really shouldn't) go over to the Batik GVT for this. You can call the SVG method 'getBBox' (from the SVGLocatable interface) directly on the DOM elements (after casting to an SVGLocatable of course). Thomas DeWeese | CDG Advanced Development | Eastman Kodak Company | 343 State Street | Rochester, NY 14650-0128 | [EMAIL PROTECTED] | 585 781-9059 | www.kodak.com
<<image/gif>>
