Thomas DeWeese wrote:

>>   This should be documented and there should be better checking
>>along with a better error message when the check fails (or it could
>>default to the final 'computed' bounds of the SVG - although this
>>can often be 'wrong'.  Contributions are always welcome.

Nikhil Dinesh wrote:

The canvas does not provide locatability support for ALWAYS_STATIC
documents. ie SVGRect rect =
canvas.getSVGDocument().getRootElement().getBBox() results in rect = null.
Is there another way to check the 'computed' bounds? If there is, then
case the default you suggest would be nice.

Yes you can use the rendering tree directly:

   Rectangle2D bounds = canvas.getGraphicsNode().getBounds();

BTW has performance improved with the JSVGScrollPane?


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



Reply via email to