org.apache.batik.svggen
public class SVGLinearGradient extends AbstractSVGConverter
Constructor Summary | |
---|---|
SVGLinearGradient(SVGGeneratorContext generatorContext) |
Method Summary | |
---|---|
SVGDescriptor | toSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into
a set of attribute/value pairs and related definitions
|
SVGPaintDescriptor | toSVG(GradientPaint gradient) |
Parameters: generatorContext used to build Elements
Parameters: gc GraphicContext to be converted
Returns: descriptor of the attributes required to represent some or all of the GraphicContext state, along with the related definitions
See Also: SVGDescriptor
Parameters: gradient the GradientPaint to be converted
Returns: a description of the SVG paint and opacity corresponding to the gradient Paint. The definiton of the linearGradient is put in the linearGradientDefsMap