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 Carsten Zerbst <ca...@atlantec-es.com> on 2003/09/04 15:27:30 UTC
Event position ?
Hello,
I'd like to display something like a tooltip on certain items. This
works well, but actually I take the position for the tooltip using
event.screenX/Y. This is off course wrong, but how could one access the
position of an event e.g. in the coordinate system of the svg ?
Thanks, Carsten
--
Carsten Zerbst <ca...@atlantec-es.com>
Atlantec Enterprise
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
Re: Event position ?
Posted by Thomas DeWeese <Th...@Kodak.com>.
Carsten Zerbst wrote:
> Hello,
>
> I'd like to display something like a tooltip on certain items. This
> works well, but actually I take the position for the tooltip using
> event.screenX/Y. This is off course wrong, but how could one access the
> position of an event e.g. in the coordinate system of the svg ?
Try getScreenCTM() - there is example code in:
xml-batik/samples/test/spec/scripting/currentScaleTranslate.svg
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org