Ouch, OK, that gets complicated. I have some synchronization on incoming XMPP events so they arrive in order and I'll have to get things straight between that queue, the queue going to the UpdateManager and whether or not the update manager's available. The code that changes the document wasn't in the UpdateManager queue, but I recall now that it's based in the Swing queue as well. Thanks.
Michael -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 21, 2006 10:21 AM To: [email protected] Cc: [email protected] Subject: RE: GVT Tree Rendering Hi Michael, "Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on 11/21/2006 08:48:35 AM: > OK, that's what I thought. I'm having some trouble with that. How would I > wait for that tree to render? This is what I have (condensed): The problem is that you are trying to wait in the Swing thread. But in order for the GVT rendering to occur it needs to run code in the Swing thread, that can't happen while you are sitting in your while loop. > [...] what I want to do is associate every call to > JSVGCanvas.setDocument(...) with a pause to wait for > the tree to finish rendering before moving on to process > other events. Then you will need to create a queue for the events that arrive while the document is being prepared and play those events back after the rendering completes. > As it stands, every call > to JSVGCanvas.setDocument(...) is followed by a 5 second pause, then > notification of the "rendering complete" method. > > > > Michael Bishop > > > ________________________________ > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tue 11/21/2006 7:07 AM > To: [email protected] > Cc: [email protected] > Subject: Re: GVT Tree Rendering > > > > Hi Michael, > > "Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on > 11/20/2006 02:18:44 PM: > > > In what cases do I need to stop and wait for the GVT Tree to > render? The > > first time I initialize the canvas? Every time I switch documents on > the > > canvas? > > Everytime you load a document, the current UpdateManager is disposed > of > and the new UpdateManager is not available until after the first > rendering. > The UpdateManager is tied to the document not the Canvas. > > > > Resizing the canvas? Can anyone tell me when I need to reset and > > recheck this value? I get errors in my application about a null > UpdateManager > > when refreshing documents and switching pages. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > [attachment "winmail.dat" deleted by Thomas E. DeWeese/449433/EKC] > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
