Denis Bohm wrote:

I would like to sping off a thread that creates a socket connection and
listens for data.  When the data arrives I would like to update the SVG DOM.
To do that I need to ask the Batik canvas for the update manager and ask
that for the runnable queue then queue up a runnable to do the update.
However, I don't have a reference to the canvas.  Is there some way to
get one from the document?

Well the Window object we provide has a method 'getBridgeContext' and the BridgeContext can provide you with the UpdateManager (if there is one).

I can't seem to find a way to get the Window from the SVGDocument in Java.

This does appear to be a hole in the current Java binding, as I had suggested I think this area of the specification is under review.

  In Batik there is a method called 'getSVGContext' that you could
call on the DOM nodes this returns one of the Bridges, and they
all have a '.ctx' member that is the BridgeContext.  But this is
all _very_ non-standard (I'm also not sure if all the needed methods
and members are public).



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



Reply via email to