Hi
Thank you. It's so simple and works. 
Bartek

-----Original Message-----
From: Nikhil Dinesh [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 21, 2004 12:08 AM
To: Batik Users
Subject: Re: Copying SVGDocument

Hi,

SVGDocument doc =
(SVGDocument)((svgCanvas.getSVGDocument()).cloneNode(true));

should work.

-Nikhil


On Tue, 20 Jul 2004, Bartosz Celmer wrote:

> Hello.
>
> I need to copy SVGDocument and then modify it. I try to find any solution
in
> batik mailing list but with no results. I'm looking for something like
this:
>
>
>
> SVGDocument doc = new SVGDocument(svgCanvas.getSVGDocument());
>
> But of course in there is no method like this in batik. Problem is that
when
> I do something like this:
>
> SVGDocument doc = svgCanvas.getSVGDocumet();
>
> then I change smoothing in doc, it it's also changed in svgCanvas (it's of
> course normal - doc is just reference not new object). What I need is
> exactly  copy of SVGDocument stored in svgCanvas.
>
>
>
> Thanks for any help
>
> Bartek
>
>

---------------------------------------------------------------------
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