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 William Billingsley <wh...@cam.ac.uk> on 2003/05/06 00:43:23 UTC
how to suspend mouse events (but not DOM update events) on a JSVGCanvas?
Hi,
I'm a newbie asking a hopefully trivial question...
I'm putting together a drawing applet for creating very simple static SVG
diagrams. I have registered a mouse input listener (java.awt.event.*) on
the JSVGCanvas so that the Applet can allow the user to draw on the canvas.
This is working fine, but I have noticed that occasionally mouse events are
not being caught, and the cursor shape changes as it moves over elements
within the SVG, so existing mouse listeners for interactivity of the objects
must be catching some of the mouse events. I need to be able to switch
these pre-existing mouse listeners on and off depending on whether I am in
"draw" mode or "select" mode, but leave the DOM update listeners always on.
I can't seem to find any public methods on the JSVGCanvas that would suspend
mouse interactions but not DOM update events. (Or am I misreading some of
the Javadoc?).
cheers,
Will Billingsley.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org