xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scheit Christoph <christoph.sch...@siemens.com>
Subject Rendering order / children
Date Thu, 11 Aug 2005 08:04:06 GMT
Hello!

 

I want to create child-nodes for an element, let's say a rectangle.

 

1)

elem.appendChild(rect); // rect is the new, elem an already exising
rectangle

 

If I try like this, it doesn't work (i.e.the child is not rendered!?!)

 

If I just add it to the root element

 

2)

svgDoc.getDocumentElement().appendChild(rect);

 

 

it works (but they are not children, what I want to have since they are
logically related in the application).

 

Is there any possibility to do it like in example 1) ??

 

Thank you very much,

 

Christoph


Mime
View raw message