Many thanks Thomas, now my symbol library is fully accessible (inklusive styles) and works fine. Currently I not completely understand all steps of your code snippet, but I will learn and read about it ;-) Maik ----- Original Message ----- From: "Thomas DeWeese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, October 06, 2004 2:25 PM Subject: Re: how to get parts of the 'style' attribute
Hi Maik, You asked questions that I thought I had already answered. Here is a small code snippet (mostly from batik.apps.slideshow.Main): UserAgent userAgent; DocumentLoader loader; BridgeContext ctx; GVTBuilder builder; userAgent = new UserAgentAdapter(); loader = new DocumentLoader(userAgent); ctx = new BridgeContext(userAgent, loader); ctx.setDynamicState(BridgeContext.DYNAMIC); builder = new GVTBuilder(); builder.build(ctx, svgDoc); The CSS and SVG DOM interfaces will now be live. If you don't want/need the SVG DOM you can use BridgeContext.STATIC and save some memory and processing time. In any 'real world' application you will want to subclass UserAgentAdapter. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]