xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: referred <def> element is not displayed
Date Thu, 05 Jan 2006 13:05:57 GMT
Hi Tamás,

Gorzsás Tamás <Gorzsas.Tamas@evosoft.hu> wrote on 01/05/2006 07:01:10 AM:

> I’m dealing with maps which are available in SVG format.
> I have to put icons onto the map in runtime. The icons are available in 
> separated SVG files.
[...]
>                         Element trainImage = canvas.getSVGDocument().
> createElementNS(SVGDOMImplementation.SVG_NAMESPACE_URI, 
SVGConstants.SVG_USE_TAG);
>             trainImage.setAttributeNS(XMLConstants.XLINK_NAMESPACE_URI, 
"xlink:href", 
> "#train-1-purple");

> Is it a bug in Batik or do I something wrong?

        I would suspect that you have either not informed the
Canvas that the document will be dynamic (search for ALWAYS_DYNAMIC), 
or you are not making your changes in the UpdateManager Thread.
Mime
View raw message