Hi,

I have an SVG document which SVGCanvas has fully parsed and rendered.
I'm trying to get the bounding box of a <polygon> element:

   SVGLocatable loc = (SVGLocatable)element;
   SVGRect bbox = loc.getBBox();
   float x = bbox.getX();

Batik throws a NullPointerException on the third line inside getX(),
(from inside SVGLocatableSupport$1.getX()).

Any ideas?

Notes..

   - This code is being run from within the update manager thread.
   - The SVGCanvas has reported tree rendering complete
   - The node in question is set to display and has visibility="visible"

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com


*
Confidentiality Notice: This e-mail message, including any attachments, is for 
the sole use of the intended recipient(s) and may contain confidential and 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies of 
the original message.
*


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

Reply via email to