Maik Schrer  proveo GmbH:
> yes, it is a static document
> but why I can not get a bounding box of an element when it comes from static
> document ?

Normally, if you do not have any Java code that will manipulate the SVG
in your JSVGComponent, references to the Java 2D objects which are used
for drawing (and hence their geometry) are not kept.  If the document
has no script element or event attributes (and a couple of other cases),
then the document by itself will have no need to keep around these
objects.

But if you use some Java code to manipulate the SVG, it may well need to
keep the objects to allow, for example, bounding box calculations.
Since the JSVGComponent doesn't know if it will be used in this way or
not (unless there are script elements, or event attributes, or ...), it
has the setDocumentState method so that you can tell it to allow such
dynamic interactions to be possible.

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

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

Reply via email to