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 philip zuniga <ph...@yahoo.com> on 2006/03/01 03:12:49 UTC

Unsynchronized JSVG canvasses

Hello.
   
  I have an java application, where I have two JSVG canvas loading two different SVG documents. One of the canvasses loads an SVG file with a blue circle, while the other one loads an SVG file with a red circle. I would want to synchornize the movement of the two circles, such that if I drag a circle in one of the canvasses, then the other circle would also move.
   
  But, what is happening is that the circle does not automatically move automatically, but rather, I have to place the mouse over the canvas so that the circle would be placed to the same position as where I have the other circle.
   
  I tried using the setDocument() of JSVG but, it causes flickering...
   
   
  what should I do?

		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: Unsynchronized JSVG canvasses

Posted by th...@kodak.com.
Hi Philip,

philip zuniga <ph...@yahoo.com> wrote on 02/28/2006 09:12:49 PM:

> But, what is happening is that the circle does not automatically move 
> automatically, but rather, I have to place the mouse over the canvas so 
that 
> the circle would be placed to the same position as where I have the 
other circle.

  Please read the FAQ:

        http://xmlgraphics.apache.org/batik/faqs.html#faq-22

  You need to modify the document in the second SVG canvas in that
canvas's UpdateManger thread. 

> I tried using the setDocument() of JSVG but, it causes flickering...
> 
> 
> what should I do?
> Yahoo! Mail
> Bring photos to life! New PhotoMail makes sharing a breeze. 

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