Hi, My application uses multiple SVG documents but only one SVG Component. One is an overview document KEPT in memory, other are detail documents created on demand.
The overview document is receiving updates (thumbnails being generated in the background) using updateManager.invokeLater(). If the update manager doesn't exist yet, I also wait using UpdateManagerListener.managerResumed and UpdateManagerListener.managerStarted for an appropriate moment to act. This is working fine as long as the document is visible in the component. It also works fine while I'm showing a different document. However when the user selects a detail element, I want to switch to showing the detail document instead of the main document. Note that I still want to keep the main document AND apply pending/future updates that come in while I'm showing the other document. Because at some point I want to show the main document again. When I call "setDocument", any waiting events in the updateManager seem to get discarded. (My invokeLater tasks get created but are never run) So I can't call setDocument in invokeLater or immediately. I tried using UpdateManagerListener.updateCompleted(), but that doesn't seem to work either. I figure there might be new updates already in the queue when updateCompleted() gets invoked or something like that. I still lose some updates. I figure I could work with two SVG components and just keep one in the background or so... what other options do I have for updating the SVG document asynchronously without losing updates whenever I call setDocument()? Regards, Erich --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
