org.apache.batik.svggen

Class SVGGraphicContextConverter

public class SVGGraphicContextConverter extends Object

This class performs the task of converting the state of the Java 2D API graphic context into a set of graphic attributes. It also manages a set of SVG definitions referenced by the SVG attributes.
Constructor Summary
SVGGraphicContextConverter(SVGGeneratorContext generatorContext)
Method Summary
SVGClipgetClipConverter()
SVGCompositegetCompositeConverter()
ListgetDefinitionSet()
SVGFontgetFontConverter()
SVGRenderingHintsgetHintsConverter()
SVGPaintgetPaintConverter()
SVGBasicStrokegetStrokeConverter()
SVGTransformgetTransformConverter()
StringtoSVG(TransformStackElement[] transformStack)
SVGGraphicContexttoSVG(GraphicContext gc)

Constructor Detail

SVGGraphicContextConverter

public SVGGraphicContextConverter(SVGGeneratorContext generatorContext)

Parameters: generatorContext the context that will be used to create elements, handle extension and images.

Method Detail

getClipConverter

public SVGClip getClipConverter()

getCompositeConverter

public SVGComposite getCompositeConverter()

getDefinitionSet

public List getDefinitionSet()

Returns: a set of element containing definitions for the attribute values generated by this converter since its creation.

getFontConverter

public SVGFont getFontConverter()

getHintsConverter

public SVGRenderingHints getHintsConverter()

getPaintConverter

public SVGPaint getPaintConverter()

getStrokeConverter

public SVGBasicStroke getStrokeConverter()

getTransformConverter

public SVGTransform getTransformConverter()

toSVG

public String toSVG(TransformStackElement[] transformStack)

Returns: a String containing the transform attribute value equivalent of the input transform stack.

toSVG

public SVGGraphicContext toSVG(GraphicContext gc)

Returns: an object that describes the set of SVG attributes that represent the equivalent of the input GraphicContext state.

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