xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From emzic <em...@embege.com>
Subject RE: visualizing updates of the domtree on a JSVGCanvas
Date Thu, 20 Nov 2008 09:39:06 GMT

thanks for your reply!


Dan Slater wrote:
> 
> Do you call
> 
>   svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);
> 
> before setSVGDocument?
> 
now, but i have added it now. thanks!



>>>now i update the svgdocument via the dom-tree
> 
> How exactly?  Do you make your changes thread-safe, using the update
> manager, such as
> 
>   RunnableQueue rq =
> svgCanvas.getUpdateManager().getUpdateRunnableQueue();
>   rq.invokeLater(new Runnable(){
>     public void run(){
>       //your doc updates here
>     }
>   });
> 

hmmmm, will i need to do this for every document update? because i have code
like:
((Element) node).setAttributeNS(null, "style", "fill:none");
all over the place.

-- 
View this message in context: http://www.nabble.com/visualizing-updates-of-the-domtree-on-a-JSVGCanvas-tp20582708p20597816.html
Sent from the Batik - Users mailing list archive at Nabble.com.


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


Mime
View raw message