Thomas DeWeese wrote:
Hi James,
You will need to build the GVT tree (which is what the
JSVGCanvas calls do except you aren't waiting for the build
events, you are also not making the canvas ALWAYS_DYNAMIC
so for a simple document it won't link the DOM to graphics).
The code to build the graphics tree for the DOM explicitly
rather than relying on the JSVGCanvas (which is kinda ugly):
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, document);
Most of the classes are from the bridge package.
Wow, it works! Thanks so much!
James Shaw
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]