Hi Wolfgang.

REH Wolfgang:
>     I just tried to update from batik 1.5 to 1.5.1 but do have
>  troubles. Previously I called Canvas.getUpdateManager.repaint()
>  to force an immediate repaint of the canvas. Now that method is
>  protected and I didn't find a possibility to force the canvas to
>  update it's contents after changing some attributes in the document.
>  If I just remove the repaint-call the canvas gets refreshed only when
>  the mouse is moved, but that's not acceptable for our application.
>  How do I force the canvas to immediately update it's contents after
>  changing of an attribute (e.g.. colour of an element)?

You should make changes to the document only within the Swing thread of
the application.  This is done by telling the UpdateManager to run some
piece of code that does the modification.  See the "Writing Thread Safe
Code" section on http://xml.apache.org/batik/javaScripting.html .  Then
you should have no need to call repaint.

Cameron

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to