xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Armhold <armh...@cs.rutgers.edu>
Subject Re: how to associate DOM element w/ MouseEvent?
Date Thu, 01 Apr 2004 09:30:28 GMT
Bibek Sahu wrote:

> Howdy,

Hi Bibek,

> If I'm understanding you correctly, you'd want:
> 
> 	Element elem = ....;	// DOM Element
> 	EventTarget target = (EventTarget) elem;  // works with almost all SVGElements
> 	target.addEventListener(new EventListener() {
> 		...
> 	});

Actually what I'd like to do is determine over which DOM element a
java.awt.event.MouseEvent has taken place.  So in essence I'd like to
determine which DOM element is under a given AWT x/y coordinate.  Is
this possible?

Thanks.



-- 
George Armhold
Rutgers University
eLearning Grant, DCIS


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


Mime
View raw message