Hi Juergen,
you can probably use a org.apache.batik.gvt.GraphicsNode for that
purpose. (Although I do not understand what you mean by painting only "a
piece of" the SVG?).
Given a SVGDocument svgDocument, you can create a GraphicsNode with
something along the lines of
UserAgent userAgent = new UserAgentAdapter();
BridgeContext bridgeCtx = new BridgeContext(userAgent);
GVTBuilder builder = new GVTBuilder();
GraphicsNode node = builder.build(bridgeCtx, svgDocument);
In paintComponent use the GraphicsNode's paint method
node.paint(graphics);
I usually cache the created GraphicsNode for efficiency.
Hope this helps.
Regards, Thomas
Juergen Melzer wrote:
Hi all,
I want to paint a piece of the svg definition in my paintComponent
Method of my JPanel.
( I use http://david.bellot.free.fr/svg-cards)
So I dont want to use the class JSVGCanvas.
I tried to use StaticRenderer but it didnt work.
Can someone help?
Thanks,
Juergen
--
Thomas Behr
yWorks GmbH
Vor dem Kreuzberg 28
72070 Tuebingen, Germany
Tel.: +49 7071 9709050
Fax.: +49 7071 9709051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]