Hi,
I'm a new user to Batik, and I've been having some trouble capturing mouse events
despite a day or so of looking at the code. I was wondering if someone could point out
an obvious error.
 
I have an SVG document with some rectangles, one called "MyRectangle".
I have a JGVTComponent for the 'view' and a JSVGDocument for the 'model'.
 
At some point I call something akin to
 
JGVTComponent.setGraphicsNode (   JSVGComponent.getGraphicsNode()   );
 
and render the document. Later I call getElementById() to find the "MyRectangle"
element and bridgeContext.getGraphicsNode() on the element to get the GraphicsNode.
I then call addGraphicsNodeMouseListener() with a GraphicsNodeMouseAdapter
having a mouseClicked() method which simply prints out a console message.
 
Everything renders okay and the MouseListener gets set but I click merrily away
on the rectangle but the mouseClicked() never get called.
 
Is there some other setting I have to enable? For example, do I have to explicitly
set my own eventDispatcher? Thanks.
 
P.S. Thierry Kormann, thanks for the last answer you sent through. 
     
 

Reply via email to