org.apache.batik.svggen

Class SVGCustomPaint

public class SVGCustomPaint extends AbstractSVGConverter

Utility class that converts an custom Paint object into a set of SVG properties and definitions.

See Also: SVGPaint

Constructor Summary
SVGCustomPaint(SVGGeneratorContext generatorContext)
Method Summary
SVGDescriptortoSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions
SVGPaintDescriptortoSVG(Paint paint)

Constructor Detail

SVGCustomPaint

public SVGCustomPaint(SVGGeneratorContext generatorContext)

Parameters: generatorContext the context.

Method Detail

toSVG

public SVGDescriptor toSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions

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

toSVG

public SVGPaintDescriptor toSVG(Paint paint)

Parameters: paint the Paint object to convert to SVG

Returns: a description of the SVG paint and opacity corresponding to the Paint. The definiton of the paint is put in the linearGradientDefsMap

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.