xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Slater" <dsla...@simulsoft.com>
Subject RE: visualizing updates of the domtree on a JSVGCanvas
Date Wed, 19 Nov 2008 17:33:05 GMT
Do you call

  svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);

before setSVGDocument?

>>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
    }
  });




-------- Original Message --------
Subject: visualizing updates of the domtree on a JSVGCanvas
From: emzic <emzic@embege.com>
Date: Wed, November 19, 2008 9:50 am
To: batik-users@xmlgraphics.apache.org


hello, i use a JSVGCanvas and set a svgdocument to it via

svgcanvas.setSVGDocument(document);

now i update the svgdocument via the dom-tree, but the changes dont seem
to
be visible on the jsvgcanvas.

how can i visualize the new svg on the jsvgcanvas? do i need to set some
kind of listeners?

thanks!
-- 
View this message in context:
http://www.nabble.com/visualizing-updates-of-the-domtree-on-a-JSVGCanvas-tp20582708p20582708.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





---------------------------------------------------------------------
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