xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: your mail
Date Thu, 24 Jun 2004 11:17:43 GMT
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: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message