xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dao <dao.ho...@gmail.com>
Subject event targets
Date Tue, 27 Apr 2010 09:41:10 GMT
hello,

I try to make some elements of my SVG canvas clickable. Unfortunately, they
are under other elements that are either not visible or semi transparent
(they belong to other layers).

I add a listener on my element:
EventTarget control = (EventTarget)
getCanvas().getSVGDocument().getElementById(id);
control.addEventListener("click", new RemoteClickListener(id,
getRemoteEngine()), false);

but the event is not catched. If I remove the elements that are over the
target element, it works.

So, what is the way to do what I want to do?
and can I have more information about the useCapture boolean?

-- 
Dao Hodac

Mime
View raw message