Hi,

On Fri, 2007-01-12 at 09:01 -0800, vyang wrote:
> then I would get a null bbox.  But when I get SVGDocument from JSVGCanvas,
> my bbox is not null.  I also checked to see if the documents where the same
> by viewing it on JSVGCanvas, and it appears that they are the same.  Why is
> it that when I use the one created by SAXSVGDocumentFactory I get null?  Is
> it because I passed null to SAXSVGDocumentFactory?

I think you need to boot the svg and css properly for bbox to be
available. Please read this wiki
http://wiki.apache.org/xmlgraphics-batik/BootSvgAndCssDom

> Also, it appears that bbox is not what I need.  What I am doing is drawing a
> dot on click on an overlay.  And then if the user would click near the edge
> of a circle for example, it would draw the dot on the circle's edge.  Anyone
> hints on how I would implement this?  Again any hints would be much
> appreciated.  Thanks.

I do not know you need the bbox or not, but you need to know the
bounding box of the circle (bbox is providing this info) and compare it
with the point/dot click. You might also use getIntersectionList() or
getEnclosureList() for checking the intersect of point and circle

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


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

Reply via email to