Thank you for your brilliant solution for my problem.
Could you please tell me a place to get the two classes (JSVGViewport and JSVGScrollCanvas).
Thank alot.
Kaushalya
Andres Toussaint <[EMAIL PROTECTED]> wrote:
Hi Kaushalya:
I have managed to do this using the graphics element of the parent that
holds the JSVGCanvas item (in my case a Viewport object) I call the
paint(), with the first item in the method beeing a paintChildren(), so
the SVGCanvas gets painted, and then i draw the Graphics2D layer on top
of the JSVGCanvas (in my case, some rulers, guides and selection marks.)
It is a simple Graphics2D layer on top of the JSVGCanvas, but the
aproach can work finefor multiple layers, specially if you do offscreen
drawing with a buffered image element, and then on the Paint*( method
you query which buffered images to show, alas simulating layers.
I must note that i am using JSVGScrollCanvas and JSVGViewport classes
(references elswhere in this mail list, created by Zachary
DelProposto), because I place my canvas in a scrollPanel, and all the
Graphics2D is done in the JSVGViewport class.
Hope this helps,
Andres.
On Wednesday, November 19, 2003, at 06:11 PM, Kaushalya Samarasekera
wrote:
> I want to create a layered canvas set (like layers in Photoshop).
> The bottom canvas should be a JSVGCanvas and all other canvases on top
> of it should be typical swing JCanvases.All canvases should be
> transparent but its contents should be visible.
> Is there a special Layout Manager for this.
> Please help me to solve this problem....
>
> Kaushalya
>
>
>
>
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
