Re: SVGContext is null

2004-09-09 Thread Thomas DeWeese
Hi Urs, Urs Reupke wrote: I do not, however, understand exactly what I have done by creating the BridgeContext and calling GVTBuilder.build - do you know about the details and could possibly explain what happens within the program? Up to know, I thought GVT was an internal representation of my SV

Re: SVGContext is null

2004-09-09 Thread Urs Reupke
Thank you Thomas, No, but if you are loading a 'static' SVG document (no script tags or event attributes) then you need to tell Batik that you still want access to the SVGDOM (which is provided by the context objects). This can be done in the canvas with setDocumentState(ALWAYS_DYNAMIC), or if y

Re: SVGContext is null

2004-09-08 Thread Thomas DeWeese
Hi Urs, Urs Reupke wrote: yesterday I hit upon a problem when trying to get the computed text length by calling SVGOMTextElement.getComputedTextLength() - a NullPointerException occured, which, as close scrutiny revealed, had it's origin in the missing SVGContext of the element. Now, I am somew

SVGContext is null

2004-09-08 Thread Urs Reupke
Hi, yesterday I hit upon a problem when trying to get the computed text length by calling SVGOMTextElement.getComputedTextLength() - a NullPointerException occured, which, as close scrutiny revealed, had it's origin in the missing SVGContext of the element. Now, I am somewhat at a loss - I thought