You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by "Bishop, Michael W. CONTR J9C880" <Mi...@je.jfcom.mil> on 2005/11/15 22:15:15 UTC
Odd behavior...DOMViewer + JSVGCanvas
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.
Michael Bishop
Re: Odd behavior...DOMViewer + JSVGCanvas
Posted by Archie Cobbs <ar...@dellroad.org>.
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