org.apache.batik.bridge

Class SVGRadialGradientElementBridge

public class SVGRadialGradientElementBridge extends AbstractSVGGradientElementBridge

Bridge class for the <radialGradient> element.
Constructor Summary
SVGRadialGradientElementBridge()
Constructs a new SVGRadialGradientElementBridge.
Method Summary
protected PaintbuildGradient(Element paintElement, Element paintedElement, GraphicsNode paintedNode, MultipleGradientPaint.CycleMethodEnum spreadMethod, MultipleGradientPaint.ColorSpaceEnum colorSpace, AffineTransform transform, Color[] colors, float[] offsets, BridgeContext ctx)
Builds a radial gradient according to the specified parameters.
StringgetLocalName()
Returns 'radialGradient'.

Constructor Detail

SVGRadialGradientElementBridge

public SVGRadialGradientElementBridge()
Constructs a new SVGRadialGradientElementBridge.

Method Detail

buildGradient

protected Paint buildGradient(Element paintElement, Element paintedElement, GraphicsNode paintedNode, MultipleGradientPaint.CycleMethodEnum spreadMethod, MultipleGradientPaint.ColorSpaceEnum colorSpace, AffineTransform transform, Color[] colors, float[] offsets, BridgeContext ctx)
Builds a radial gradient according to the specified parameters.

Parameters: paintElement the element that defines a Paint paintedElement the element referencing the paint paintedNode the graphics node on which the Paint will be applied spreadMethod the spread method colorSpace the color space (sRGB | LinearRGB) transform the gradient transform colors the colors of the gradient offsets the offsets ctx the bridge context to use

getLocalName

public String getLocalName()
Returns 'radialGradient'.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.