-----Original Message-----
From: Christophe Jolif [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 1:05 AM
To: [EMAIL PROTECTED]
Subject: [Fwd: Re: exporting RadialGradientPaint to .SVG]
Thank you, that should actually help. I've had no problem redefining the
handlePaint() method, but I'm still a little lost with the
SVGPaintDescriptor.
What exactly is the correct SVGPaintDescriptor for the
RadialGradientPaint???
When I set a SVGPaintDescriptor of any type, it automatically changes the
paint for the entire SVG file, rather than the paint for each object within
that file.
I tried some lines of code, such as the following (just for testing), always
with the same result.
return ((paint==null)?null:new SVGPaintDescriptor("none", "0.4"));
Any clues on what I'm doing wrong??
Thanks muchly
--Tinclon
-------- Original Message --------
Subject: Re: exporting RadialGradientPaint to .SVG
Date: Tue, 01 Jul 2003 09:04:40 +0200
From: Christophe Jolif <[EMAIL PROTECTED]>
Reply-To: "Batik Users" <[EMAIL PROTECTED]>
Organization: ILOG S.A.
To: Batik Users <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Hi,
The SVGGraphics2D implementation only exports to SVG the regular Java 2D
Paint
object. The RadialGradientPaint is a Batik extension and unfortunately its
export has not be coded in the SVGGraphics2D. However it should be quite
simple to add such a support, you can even do it from the outside by
subclassing the DefaultExtensionHandler and redefining the handlePaint()
method such that it creates the right SVGPaintDescriptor for the
RadialGradientPaint.
Hope this helps.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]