org.apache.batik.bridge
public class SVGLinearGradientElementBridge extends AbstractSVGGradientElementBridge
Constructor Summary | |
---|---|
SVGLinearGradientElementBridge()
Constructs a new SVGLinearGradientElementBridge. |
Method Summary | |
---|---|
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.
|
String | getLocalName()
Returns 'linearGradient'. |
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