org.apache.batik.svggen

Class SVGBasicStroke

public class SVGBasicStroke extends AbstractSVGConverter

Utility class that converts a Java BasicStroke object into a set of SVG style attributes
Constructor Summary
SVGBasicStroke(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
SVGStrokeDescriptortoSVG(BasicStroke stroke)

Constructor Detail

SVGBasicStroke

public SVGBasicStroke(SVGGeneratorContext generatorContext)

Parameters: generatorContext used by converter to handle precision or to create 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 final SVGStrokeDescriptor toSVG(BasicStroke stroke)

Parameters: stroke BasicStroke to convert to a set of SVG attributes

Returns: map of attributes describing the stroke

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