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 22:12:02 GMT
One more question here.  How can a bounding box take rotation into
account?  If I draw an Element that's wider than it is tall, then draw a
bounding box around it, it looks fine.  If I rotate it 90 degrees so
it's taller than it is wide, the bounding box still conforms to the
element before rotating.  I don't want to rotate the bounding box; I
want it to be big enough to bound the element in any rotation.  Is there
a way to do this?

Michael Bishop

-----Original Message-----
From: Bishop, Michael W. CONTR J9C880
[mailto:Michael.Bishop@je.jfcom.mil] 
Sent: Monday, December 12, 2005 2:14 PM
To: batik-users@xmlgraphics.apache.org
Subject: RE: When does an SVGLocatable have a bounding box?

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

---------------------------------------------------------------------
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