FYI
-------- Original Message --------
Subject: batik
Date: Thu, 28 Jun 2001 18:08:38 +0300
From: Ilian Alekov <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Organization: TL
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
hello!
I get a nullpointerexception when running the following part of my code:
protected void renderSVGDocument(Document doc, int x, int y) {
UserAgent userAgent = new MUserAgent(new AffineTransform());
GVTBuilder builder = new GVTBuilder();
StaticRendererFactory srf = new StaticRendererFactory();
GraphicsNodeRenderContext rc = srf.getRenderContext();
BridgeContext ctx = new BridgeContext(userAgent, rc);
GraphicsNode root;// = new GraphicsNode();
graphics.translate(200, 100);
graphics.setRenderingHints(rc.getRenderingHints());
root = builder.build(ctx, doc);
root.paint(graphics, rc); <-- That is the point where the exception is
raised!!!
graphics.translate(-200, -100);
}
Thanks in advance!
Ilian Alekov
---------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]