xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bishop, Michael W. CONTR J9C880" <Michael.Bis...@je.jfcom.mil>
Subject RE: Odd behavior...DOMViewer + JSVGCanvas
Date Tue, 15 Nov 2005 21:37:43 GMT
Hrm, this is a good question.  I'm simply updating the Node in the
AbstractTableModel.setValueAt(...) method.  You're probably right;
perhaps the actual change to the Node should take place in the
UpdateManager of the JSVGCanvas.  Simple mistake if that's indeed the
problem.

Michael Bishop

-----Original Message-----
From: Archie Cobbs [mailto:archie@dellroad.org] 
Sent: Tuesday, November 15, 2005 4:35 PM
To: batik-users@xmlgraphics.apache.org
Subject: Re: Odd behavior...DOMViewer + JSVGCanvas

Bishop, Michael W. CONTR J9C880 wrote:
> Ok, so I took a look at the DOMViewer and managed to change it to a 
> "DOMEditor" where you can edit the attributes shown in the table and 
> have them apply to the document.  I made the DOMEditor a non-modal 
> JDialog.  The odd behavior is when I change an attribute.  The
document 
> appears to be changed, but no change is rendered to the JSVGCanvas
until 
> I move my mouse into the JSVGCanvas.  If I make the JDialog modal, the

> changes won't show in the JSVGCanvas until I close the JDialog.  I've 
> tried explicitly repainting the JSVGCanvas with no luck.  Is there a 
> reason or something I need to do?  The JSVGCanvas is ALWAYS_DYNAMIC,
but 
> it seems to halt rendering until the mouse is in the JSVGCanvas with
no 
> modal components in front of it.

Just a wild guess.. sounds like a threading problem. I.e., something
is being done in the wrong thread. Are you updating the DOM in the
Swing thread instead of the canvas updater thread? Are you updating
the GUI in the canvas thread instead of the Swing thread? Etc.

-Archie

________________________________________________________________________
__
Archie Cobbs      *        CTO, Awarix        *
http://www.awarix.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