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 When does an SVGLocatable have a bounding box?
Date Mon, 12 Dec 2005 18:22:59 GMT
The following results in "null" being printed:


Element someElement = SVGShape.toShape(someShape);

SVGRect boundingBox = ((SVGLocatable) someElement).getBBox();

if (boundingBox == null) {




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


Michael Bishop

View raw message