Hi Vincent,

"V. de Weger" <[EMAIL PROTECTED]> wrote on 10/13/2006 03:51:13 PM:

> Thomas, I usually put the canvas on a JSVGScrollPane. How would I do 
that
> for two layered canvasses?

   You should be able to do it similarly.  Just put the second canvas 
under the JSVGScrollPane.  The only tricky bit is that you will
need to manually match the sizes of the canvases as well (since
the lower one won't have the scroll pane taking up space, it might
be that you could even just stick the lower one in a JSVGScrollPane
as well).

   One of the nice things about the JSVGScrollPane is that it
does all of it's work by manipulating the paint and rendering 
transform on the contained canvas.  So if you reflect those
changes in the lower canvas the two should stay in sync.

> >   Subclass the canvas and override the 'setRenderingTransform'
> >and setPaintingTransform methods on the top canvas to call
> >the same methods with the same values on the lower canvas.
> >Also don't forget to mark the top canvas as Transparent for
> >swing and give it a transparent background color.
> 
> 
> -- 
> View this message in context: 
http://www.nabble.com/how-to---dynamic-labels-
> tf2391776.html#a6802704
> Sent from the Batik - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to