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 hugues parvillers <hp...@yahoo.fr> on 2005/05/11 00:49:20 UTC
Changing cursor
Hello,
First, tks to Andreas and Thomas for their answers to
my previous question about reloading a new url into
batik via a script.
Finally I used an <a> in the map, setting the
xlink:href and then forwarding the evt initiating the
script to this <a>.
--
So my today worry is about changing cursor.
Considerer the "educating" sample of yosemite park
from carto.net, I would like also to change cursor
appareance why going near the borders of the map.
If so, when clicking in that area, the map is then
relocated.
I'm able to identify that I'm in the 5% width/height
area near the border of the main map, but nothing
exact happens to the cursor when I set
myMainMap.mapSVG.setAttributeNS(null,"cursor","move");
The cursor changes randomly to the right appareance
when moving on the map without correct reason ?
Is there any artefact or trouble with the fact I'm
still over the same object ? What is the exact
condition (event ?) for the cursor to change of
appareance ?
Where am I wrong ?
many thanks in advance.
H/P
France
sample on line:
http://parvillers.homeip.net/grosvol/t.svg
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: Changing cursor
Posted by Thomas DeWeese <Th...@Kodak.com>.
Hi Hugues,
hugues parvillers wrote:
> I'm able to identify that I'm in the 5% width/height
> area near the border of the main map, but nothing
> exact happens to the cursor when I set
>
> myMainMap.mapSVG.setAttributeNS(null,"cursor","move");
>
> The cursor changes randomly to the right appareance
> when moving on the map without correct reason ?
The cursor only changes when you are 'over' an element
with pointer events. The easiest thing to do would be
to add:
<rect x="0" y="0" width="100%" height="100%"
visibility="hidden" pointer-events="fill"/>
as the first child of your SVG element.
> Is there any artefact or trouble with the fact I'm
> still over the same object ? What is the exact
> condition (event ?) for the cursor to change of
> appareance ?
I don't think so... But I could be wrong.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org