org.apache.batik.svggen

Class SVGPaint

public class SVGPaint extends Object implements SVGConverter

Utility class that converts a Paint object into an SVG element.

See Also: SVGLinearGradient SVGTexturePaint

Constructor Summary
SVGPaint(SVGGeneratorContext generatorContext)
Method Summary
SVGColorgetColorConverter()
SVGCustomPaintgetCustomPaintConverter()
ListgetDefinitionSet()
SVGLinearGradientgetGradientPaintConverter()
SVGTexturePaintgetTexturePaintConverter()
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

SVGPaint

public SVGPaint(SVGGeneratorContext generatorContext)

Parameters: generatorContext the context.

Method Detail

getColorConverter

public SVGColor getColorConverter()

getCustomPaintConverter

public SVGCustomPaint getCustomPaintConverter()

getDefinitionSet

public List getDefinitionSet()

Returns: Set of Elements defining the Paints this converter has processed since it was created

getGradientPaintConverter

public SVGLinearGradient getGradientPaintConverter()

getTexturePaintConverter

public SVGTexturePaint getTexturePaintConverter()

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 Paint to be converted to SVG

Returns: a descriptor of the corresponding SVG paint

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