xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bishop, Michael W. CONTR J9C880" <Michael.Bis...@je.jfcom.mil>
Subject RE: When does an SVGLocatable have a bounding box?
Date Mon, 12 Dec 2005 19:13:43 GMT
Ah, there's the ticket.  Works like a charm; just added the creation of
my extraneous attributes to the call that appends the element to the
root of the document.

Michael Bishop

-----Original Message-----
From: thomas.deweese@kodak.com [mailto:thomas.deweese@kodak.com] 
Sent: Monday, December 12, 2005 1:56 PM
To: batik-users@xmlgraphics.apache.org
Subject: Re: When does an SVGLocatable have a bounding box?

Hi Michael,

"Bishop, Michael W. CONTR J9C880" <Michael.Bishop@je.jfcom.mil> wrote on

12/12/2005 01:22:59 PM:

> Must it be rendered to the JSVGCanvas first?  How can I derive the 
center 
> point of any given element as soon as the element has been created?

   It must be part of the rendering tree to have a bbox, it does not 
have to have been rendered yet.  So if you add it to the tree first
and then calculate the various transforms you should be fine.


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

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


Mime
View raw message