This is covered in the archives. The explanation is covered in the Batik documentation:
http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom The required code is something like this: DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); SVGDocument doc = (SVGDocument) impl.createDocument(SVGDOMImplementation.SVG_NAMESPACE_URI, "svg", null); UserAgent userAgent = new UserAgentAdapter(); DocumentLoader loader = new DocumentLoader(userAgent); BridgeContext ctx = new BridgeContext(userAgent, loader); ctx.setDynamicState(BridgeContext.DYNAMIC); GVTBuilder builder = new GVTBuilder(); builder.build(ctx, doc); -----Original Message----- From: javaNoob [mailto:[EMAIL PROTECTED] Sent: 04 July 2007 08:53 To: [email protected] Subject: RE: Calculating the bounds for a G Element Bishop, Michael W. CONTR J9C880 wrote: > > You have to boot the DOM and CSS portions of Batik, then get the > bounding box of the G element. > > Michael Bishop > > i also have a similar problem.. what do you mean by boot the DOM and CSS? -- View this message in context: http://www.nabble.com/Calculating-the-bounds-for-a-G-Element-tf4013769.h tml#a11426250 Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
