Hi Cameron,

Cameron McCormack <[email protected]> wrote on 12/29/2009 10:07:07 PM:

> In the Swing thread, I?m getting the GraphicsNode of one of the elements
> in my document and painting it on a different component.  (It?s a
> thumbnail view of the diagram.)  I think this painting is happening at
> the same time as updating/painting is happening on the JSVGCanvas.

   Yes, this could easily be your problem.

> So my question now becomes: when is it safe for me to grab the GVT node
> and paint it somewhere?  In an UpdateManager Runnable?

    The only threading mechanism currently employed in Batik is the
RunnableQueue.  I've considered adding a mutex to the root GVT node
that the UpdateManager would grab before running runnables.

> Otherwise, I guess I will have to paint it to a buffer 
> and then paint that buffer to my thumbnail component in the Swing EDT.

   Yes, I think this is the best route to go.
    

Reply via email to