Package org.apache.batik.svggen
Class SVGGraphicContextConverter
- java.lang.Object
-
- org.apache.batik.svggen.SVGGraphicContextConverter
-
public class SVGGraphicContextConverter extends java.lang.ObjectThis 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.- Version:
- $Id: SVGGraphicContextConverter.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
-
Field Summary
Fields Modifier and Type Field Description private SVGClipclipConverterprivate SVGCompositecompositeConverterprivate SVGConverter[]convertersprivate SVGFontfontConverterprivate static intGRAPHIC_CONTEXT_CONVERTER_COUNTprivate SVGRenderingHintshintsConverterprivate SVGPaintpaintConverterprivate SVGBasicStrokestrokeConverterprivate SVGTransformtransformConverter
-
Constructor Summary
Constructors Constructor Description SVGGraphicContextConverter(SVGGeneratorContext generatorContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SVGClipgetClipConverter()SVGCompositegetCompositeConverter()java.util.ListgetDefinitionSet()SVGFontgetFontConverter()SVGRenderingHintsgetHintsConverter()SVGPaintgetPaintConverter()SVGBasicStrokegetStrokeConverter()SVGTransformgetTransformConverter()SVGGraphicContexttoSVG(GraphicContext gc)java.lang.StringtoSVG(TransformStackElement[] transformStack)
-
-
-
Field Detail
-
GRAPHIC_CONTEXT_CONVERTER_COUNT
private static final int GRAPHIC_CONTEXT_CONVERTER_COUNT
- See Also:
- Constant Field Values
-
transformConverter
private SVGTransform transformConverter
-
paintConverter
private SVGPaint paintConverter
-
strokeConverter
private SVGBasicStroke strokeConverter
-
compositeConverter
private SVGComposite compositeConverter
-
clipConverter
private SVGClip clipConverter
-
hintsConverter
private SVGRenderingHints hintsConverter
-
fontConverter
private SVGFont fontConverter
-
converters
private SVGConverter[] converters
-
-
Constructor Detail
-
SVGGraphicContextConverter
public SVGGraphicContextConverter(SVGGeneratorContext generatorContext)
- Parameters:
generatorContext- the context that will be used to create elements, handle extension and images.
-
-
Method Detail
-
getTransformConverter
public SVGTransform getTransformConverter()
-
getPaintConverter
public SVGPaint getPaintConverter()
-
getStrokeConverter
public SVGBasicStroke getStrokeConverter()
-
getCompositeConverter
public SVGComposite getCompositeConverter()
-
getClipConverter
public SVGClip getClipConverter()
-
getHintsConverter
public SVGRenderingHints getHintsConverter()
-
getFontConverter
public SVGFont getFontConverter()
-
toSVG
public java.lang.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.
-
getDefinitionSet
public java.util.List getDefinitionSet()
- Returns:
- a set of element containing definitions for the attribute values generated by this converter since its creation.
-
-