Hi Björn, and thanks. I managed to reduce the execution time by a half by using setNodeValue(), and i also tryied to suspend the refresh. I can save time by putting the document state to always static but if I try to do this, changes are not visibles on my canvas, even when I put it back in dynamic.
I'll have a look at the listeners and maybe at the update manager. I never used redraw method but i'll try to figure this oout Thanks again To: [email protected] From: [EMAIL PROTECTED] Date: Tue, 16 Sep 2008 19:10:00 +0200 Subject: Re: [svg-developers] Slow updates with setTextcontent * Minimoi wrote: >In order to do this, i got a bunch of SVGOMTextElement with ids and I >just use a loop in my java code to change the content of the element. > >Java Code : >// I take the text node in a list >SVGOMTextElement elt2 = ((SVGOMTextElement) elt); >//I'll update the first child >SVGOMTSpanElement span = (SVGOMTSpanElement)elt2.getFirstChild(); >//Setting the new value >elt2.setTextContent("test"); Generally speaking, the batik-users list would be better for Batik specific questions, you should use setNodeValue() which is a much simpler method than setTextContent, and if you do multiple updates before you need to have the rendering updated, consider using the *Redraw methods to suspend and resume screen updates. -- Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de _________________________________________________________________ Téléphonez gratuitement à tous vos proches avec Windows Live Messenger ! Téléchargez-le maintenant ! http://www.windowslive.fr/messenger/1.asp [Non-text portions of this message have been removed] ------------------------------------ ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

