org.apache.batik.svggen

Class SVGTexturePaint

public class SVGTexturePaint extends AbstractSVGConverter

Utility class that converts a TexturePaint object into an SVG pattern element
Constructor Summary
SVGTexturePaint(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(TexturePaint texture)

Constructor Detail

SVGTexturePaint

public SVGTexturePaint(SVGGeneratorContext generatorContext)

Parameters: generatorContext used to build Elements

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(TexturePaint texture)

Parameters: texture the TexturePaint to be converted

Returns: a descriptor whose paint value references a pattern. The definition of the pattern in put in the patternDefsMap

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