You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Christophe Jolif <cj...@ilog.fr> on 2001/06/28 17:30:51 UTC
[Fwd: batik]
FYI
-------- Original Message --------
Subject: batik
Date: Thu, 28 Jun 2001 18:08:38 +0300
From: Ilian Alekov <ia...@tlogica.com>
Reply-To: general@xml.apache.org
Organization: TL
To: "general@xml.apache.org" <ge...@xml.apache.org>
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