Hi, > I'm sorry you found this frustrating. The proper way to > obtain the BridgeContext for the current document is by calling: > > JSVGCanvas canvas = ....; > BridgeContext bctx = canvas.getUpdateManager().getBridgeContext(); > > See the javadoc for getUpdateManager for more information on when > and how you can safely call the method. >
As mentioned before, the Batik Wiki's BootSvgAndCssDom, show example ... ctx = new BridgeContext(userAgent, loader); <------- *** ctx.setDynamicState(BridgeContext.DYNAMIC); ... rootGN = builder.build(ctx, interfaceDoc); Is there a difference between the BridgeContext (as in the Wiki) and the BridgeContext bctx = canvas.getUpdateManager().getBridgeContext(); Or it is the same bridgeContext, do some code in batik change the bridgeContext during the document loading ? so the bridgeContext (as in Wiki) is no longer valid bridgeContext after the document finished loading ? Thanks Tonny Kohar -- Sketsa SVG Editor imagine, design, create ... http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
