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 th...@kodak.com on 2007/06/02 14:17:18 UTC

Re: drawImage - last Element inserted

Hi Guillaume,

"Guillaume Rosauro" <g....@gmail.com> wrote on 05/28/2007 09:21:31 AM:

> I would like to get the last element inserted after a SVGGraphics2D.
> drawImage and then set an id attribute on this element.
> 
> How is it possible?

    You have to call 'getRoot' (which clears the contents of the
Graphics2D) and then walk it's DOM tree in backwards order (getLastChild),
The last 'leaf' node should be what you want.


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