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) {

    System.out.println("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
created?

 

Michael Bishop


Mime
View raw message