Joseph Foster wrote:
Thanks for your help, but I realized that I perhaps have been going
about my entire issue wrong.  What I want to do is modify a document and
then cause it to repaint.  I don't know if setting the canvas to dynamic
mode is the best solution (as this seems to slow thigns down
considerably).

One option is to set the document as static and use 'setSVGDocument' to update the display. This may save time if you are changing most of the document. For most cases using ALWAYS_DYNAMIC should be faster.

Is there an easy way to get the canvas to reflect changes in the model
(which will be made at specific times)?  I attempted repaint() but that
doesn't seem to do anything.  Only resizing the canvas a great amount
actually triggered a re-rendering of the document.

The display is always synced with the model for dynamic documents. For static documents it should essentially never be synced. So if you need to call repaint()/resize the document then I suspect you are making your changes outside of the UpdateManager thread.

Any ideas on the best strategy?

Thanks Again,

Joe


--------------------------------------------------------------------- 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]



Reply via email to