The GVT tree has to be built.

JSVGComponent c = ...
c.addGVTTreeBuilderListener(new GVTTreeBuilderAdapter() {
    public void gvtBuildCompleted(GVTTreeBuilderEvent evt) {
        // invoke getBBox() here
    }
});

getBBox() returns values in user space (if I understand correctly). My 
problem is that I don't know how to convert to pixels. Cf. my question "Qu. 
on UnitProcessor". If your next move is also to study that, and that you 
find the right way to use UnitProcessor, it would be kind if you could drop 
me a line.

Bertrand Fontaine
INSPIRE IT

>From: "Ytai Ben-Tsvi" <[EMAIL PROTECTED]>
>Reply-To: "Batik Users" <[EMAIL PROTECTED]>
>To: "Batik Users" <[EMAIL PROTECTED]>
>Subject: using getBBox()
>Date: Sun, 28 Jul 2002 20:46:09 +0200
>
>Hi everybody.
>
>Could someone please tell me in what stage of a SVG DOM lifetime, the
>getBBox() function becomes available. When I call it just after I
>generate the DOM, I get exceptions, should there be a stage where I tell
>batik to calculate length or something?
>
>Ytai  Ben-Tsvi
>C T I Squared
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to