Hi,

> It's a difficult issue I am currently working on. The 
> dependency graph is
> really complex to create, maintain and update.

Hmm, graph theory... which elements have to be informed if element A changes
its attributes?  Yes, that IS complex.

 
> You don't need to remove then add the element. You 'just' 
> need to change the
> 'fill' property on the element that references the gradient (using
> setAttribute("style", ...) for instance.

That is much better! Thanks for the hint.

 
> After each setAttributeNS method call, the rendering tree is 
> updated. The
> implications are bad (changing a style attribute on a <text> 
> element for
> instance is really time consuming). The graphics then is 
> updated once after
> the execution of an EventHandler (your main method in your case).

OK, I see.


> This is also an issue I am working on.

Your work and help are appreciated.


Thank you,

Martin

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

Reply via email to