Hi Andre,

André Ávila <[EMAIL PROTECTED]> wrote on 03/30/2006 12:20:22 PM:

> The idea, then, is to render each version of the file to a different 
> JSVGCanvas and diplay those canvases as a stack of transparent 
components. I 
> accomplished this by using a JLayeredPane as the stack container. 
> 
> The problem is, how can I synchronize those canvases? I'm specifically 
talking
> about the interactors, since the action listeners are simpler. Is there 
any 
> way I can propagate a user interaction in one canvas to the other ones?

   I would subclass the canvas and override the setRenderingTransform 
method
so whenever it is called on the 'top most' canvas you trigger the same 
change
in all the children canvas's (by simply calling setRederingTransform on 
all
of them with the same affine - for the children I would always use 'true'
for redraw).


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to