org.apache.batik.svggen

Class SVGComposite

public class SVGComposite extends Object implements SVGConverter

Utility class that converts a Composite object into a set of SVG properties and definitions.

Here is how Composites are mapped to SVG:

See Also: SVGAlphaComposite

Constructor Summary
SVGComposite(SVGGeneratorContext generatorContext)
Method Summary
SVGAlphaCompositegetAlphaCompositeConverter()
SVGCustomCompositegetCustomCompositeConverter()
ListgetDefinitionSet()
SVGDescriptortoSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into a set of attribute/value pairs and related definitions
SVGCompositeDescriptortoSVG(Composite composite)

Constructor Detail

SVGComposite

public SVGComposite(SVGGeneratorContext generatorContext)

Parameters: generatorContext The generator context used for handling custom and alpha composites

Method Detail

getAlphaCompositeConverter

public SVGAlphaComposite getAlphaCompositeConverter()

getCustomCompositeConverter

public SVGCustomComposite getCustomCompositeConverter()

getDefinitionSet

public List getDefinitionSet()

Returns: Set of filter Elements defining the composites this Converter has processed since it was created.

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 SVGCompositeDescriptor toSVG(Composite composite)

Parameters: composite Composite to be converted to SVG

Returns: an SVGCompositeDescriptor mapping the SVG composite equivalent of the input Composite

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