Cameron McCormack:
> I’m having an intermittent problem with my application that uses a
> JSVGCanvas, where occasionally an element isn’t painted.

As usual, writing down my problem in a mail has helped me work out what
the problem was. :-)

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.

So my question now becomes: when is it safe for me to grab the GVT node
and paint it somewhere?  In an UpdateManager Runnable?  Or is there
something I can synchronize on so I can do it directly from the Swing
thread?  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.

Thanks again,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to