org.apache.batik.bridge

Class SVGLinearGradientElementBridge

public class SVGLinearGradientElementBridge extends AbstractSVGGradientElementBridge

Bridge class for the <linearGradient> element.
Constructor Summary
SVGLinearGradientElementBridge()
Constructs a new SVGLinearGradientElementBridge.
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 linear gradient according to the specified parameters.
StringgetLocalName()
Returns 'linearGradient'.

Constructor Detail

SVGLinearGradientElementBridge

public SVGLinearGradientElementBridge()
Constructs a new SVGLinearGradientElementBridge.

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 linear 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 'linearGradient'.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.