Hi Mark, Vincent,

"Mark Fortner" <[EMAIL PROTECTED]> wrote on 06/26/2007 03:33:25 PM:

> If you're transforming it into an image map, then the tooltip is 
> actually generated by the browser, there's no bounding box to 
> define.  The tooltip text is shown in the "area" tag's "alt" attribute 

   You need to provide the 'area' element which needs coords.  Those
coords can't be in the 'local' coordinate system of the original element,
they have to be in the img tag's coordinate system as I understand it.

   This would be very difficult to figure out properly in XSLT (it would
essentially involve implementing a large chunk of SVG in XSLT).

> <img src ="planets.gif"
> width ="145" height ="126"
> alt="Planets"
> usemap ="#planetmap" />
> 
> <map id ="planetmap"
> name="planetmap">
> <area shape ="rect" coords ="0,0,82,126"
>   href ="sun.htm" target ="_blank"
>   alt="Sun" />
> </map>

   Getting back to Vincent's question.  I would suggest booting the
SVG DOM on your document.  They you can get the BBox for elements
and use getScreenCTM to map the BBox of the element to the screen
coords.

   If you want more complex shapes for the areas you can use
CompositeGraphicsNode.getOutline to get a Shape that outlines
the group (you can get the associated GraphicsNode for a DOM Node
from the BridgeContext).


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

Reply via email to