>>>>> "JM" == James McArthur <[EMAIL PROTECTED]> writes:

JM> Hi, I have a class that has extended JSVGCanvas, and I want to
JM> disable mouse events being received.

JM> In the javadocs, it says there is a protected member variable
JM> 'eventsEnabled' that has the description:

JM> "eventEnabled - Whether the GVT tree should be reactive to mouse
JM> and key events."

    When this is false I think it doesn't create an UpdateManager,
which does mean that it is insensitive to mouse and key events, it
also means that all dynamic functionality is removed.

JM> The problem I have is that when I disable this I can no longer
JM> communicate with the UpdateManager; when I try to get the
JM> UpdateManager, (via getUpdateManager().getUpdateRunnableQueue()) I
JM> receive a NullPointerException.

JM> If I set eventEnabled = true, this problem disappears.

JM> So ... is the description of this variable incorrect, or is there
JM> something else that I'm missing?

    You might try using the 'pointer-events' property to control
sensitivity to mouse events in the SVG.

    Otherwise someone needs to introduce additional variables to
control event sensativity (perhaps an event filter class) in the
Canvas.


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

Reply via email to