You know, after a bunch of poring through the JavaDocs, you'd think I'd have come across this solution in an unlikely place; my own code. Or at least the code I used for the drag/drop stuff. It's amazing this application runs at all! :) Thanks a bunch.
Michael Bishop -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 1:24 PM To: [email protected] Subject: Re: Element -> Bounding Box? Hi Michael, Check out SVGLocatable.getBBox(). "Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on 11/28/2005 11:16:24 AM: > Is there a way to do this? Citing the old drag and drop approach, I can > select an Element by clicking on it. Now I'd like to "outline" that Element > to show it's been selected. I see it can be done with other objects, but is > there a way to get from Element to bounding box? All of the SVG graphical elements (g, svg, rect, path, ellipse, text, use, etc) implement this interface. Of course not every 'Element' implements this interface as even in SVG many do not have a reasonable BBox (think gradient), and of course it's even harder to imagine what one would return for elements in other namespaces. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
