Hello,
what I'm trying to do is to zoom SVG diagram in size. Is that the right
way ?
public static SVGDocument parseSvg(String uri) {
UserAgentAdapter userAgent = new UserAgentAdapter();
DocumentLoader loader = new DocumentLoader(userAgent);
SVGDocument doc = (SVGDocument) loader.loadDocument(uri);
BridgeContext ctx = new BridgeContext(userAgent, loader);
ctx.setDynamicState(BridgeContext.DYNAMIC);
GVTBuilder builder = new GVTBuilder();
GraphicsNode gvtRoot = builder.build(ctx, doc);
AffineTransform at = AffineTransform.getScaleInstance(0.5,
0.5);
gvtRoot.setTransform(at);
return doc;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]