You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Thomas DeWeese <Th...@Kodak.com> on 2003/08/06 02:30:36 UTC

Re: Getting the UpdateManager from JSVGCanvas

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: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org