Hi

I currently have an SVGDocument set up as follows:

<GROUP id = x> (x is a number)
    <RECT>
    <TEXT>
        <TSPAN>
        <TSPAN>
        ...
    <TEXT>
        <TSPAN>
        ...
    ...
    <PATH>
</GROUP>

And I have my program set up to add on event click listeners to each
individual group:

for(int i = 0; i < Shape.shapes.size(); i++){
    Element elt = Shape.doc.getElementById("shape" + i);
    EventTarget t = (EventTarget)elt;
    t.addEventListener("click", new OnClickAction(i), false);
}

With this setup my code doesn't actually detect the clicks, I have a work
around where I add an animateMotion element attached to the group (after
path) and then it picks up the click and ignores the animateMotion set on it
(which is what I want) to do the on click event.

I was wondering if there is a more elegant solution to this or if the way I
am currently doing it is the best I can hope for.

Jon Bradford
-- 
View this message in context: 
http://www.nabble.com/On-Click-actions-tf4796512.html#a13721981
Sent from the Batik - Users mailing list archive at Nabble.com.


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

Reply via email to