xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: how to use transform in SVGCanvas.
Date Thu, 04 Sep 2003 23:13:53 GMT
Reinhard Brandst├Ądter wrote:
> Hi,
> 
> is ther a general way for how to use transform when dynamically updating 
> a SVGDocument in a SVGCanvas via the UpdateManagerQueue?
> I expected it to work like with other Elements and tried something like 
> this:
> 
> Element icongroup = doc.createElementNS(svgNS, "g");
> icongroup.setAttributeNS(svgNS, "transform", "translate(10,200)");

   The transform _attribute_ is in the 'null' namespace
(because the element is already in the svg namespace).

> ... adding some other Elements to the icongroup via appendChild() ...
> doc.getRootElement().appendChild(icongroup);
> 
> All this is done in the run() method of a Runnable in the RunnableQueue 
> via invokeLater().
> The contents of the <g> element are shown in the Canvas, but htey are 
> not translated at all. The dumped SVG file displays correctly, but how 
> can I make the dynamic Document recalculate these coordinates?
> 
> kr,
> Reinhard
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message