You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by David Avery <da...@frontgatetickets.com> on 2005/11/11 18:54:47 UTC

Steps for setting up tooltip display?


Are there any examples out there for how to enable display of <desc> 
tool tips?    I gather something needs to be done with CanvasUserAgent, 
but there are no examples of using it on google, the wiki, or searching 
the trunk code in svn. 

I'm dynamically adding the tooltips to the dom, and that seems to be 
working,  it's just the whole handling of the event on mouse over that 
seem to be missing.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Steps for setting up tooltip display?

Posted by th...@kodak.com.
Hi David,

David Avery <da...@frontgatetickets.com> wrote on 11/11/2005 12:54:47 PM:

> Are there any examples out there for how to enable display of <desc> 
> tool tips?    I gather something needs to be done with CanvasUserAgent, 
> but there are no examples of using it on google, the wiki, or searching 
> the trunk code in svn. 

  If you properly add the desc element as a child of a graphics
element everything should just work.  You may need to tell the Canvas
to treat your document as Dynamic for this to work (Google Batik 
ALWAYS_DYNAMIC).

> I'm dynamically adding the tooltips to the dom, and that seems to be 
> working,  it's just the whole handling of the event on mouse over that 
> seem to be missing.

   Another common mistake is that people don't use the SVG namespace
when the create there elements (use document.createElementNS).  If
it isn't in the SVG namespace then it isn't an SVG desc and Batik
ignores it.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org