Package org.apache.batik.svggen
Class SVGGraphicContextConverter
java.lang.Object
org.apache.batik.svggen.SVGGraphicContextConverter
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.
- Version:
- $Id: SVGGraphicContextConverter.java 1804130 2017-08-04 14:41:11Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVGClip
private SVGComposite
private SVGConverter[]
private SVGFont
private static final int
private SVGRenderingHints
private SVGPaint
private SVGBasicStroke
private SVGTransform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoSVG
(GraphicContext gc) toSVG
(TransformStackElement[] transformStack)
-
Field Details
-
GRAPHIC_CONTEXT_CONVERTER_COUNT
private static final int GRAPHIC_CONTEXT_CONVERTER_COUNT- See Also:
-
transformConverter
-
paintConverter
-
strokeConverter
-
compositeConverter
-
clipConverter
-
hintsConverter
-
fontConverter
-
converters
-
-
Constructor Details
-
SVGGraphicContextConverter
- Parameters:
generatorContext
- the context that will be used to create elements, handle extension and images.
-
-
Method Details
-
getTransformConverter
-
getPaintConverter
-
getStrokeConverter
-
getCompositeConverter
-
getClipConverter
-
getHintsConverter
-
getFontConverter
-
toSVG
- Returns:
- a String containing the transform attribute value equivalent of the input transform stack.
-
toSVG
- Returns:
- an object that describes the set of SVG attributes that represent the equivalent of the input GraphicContext state.
-
getDefinitionSet
- Returns:
- a set of element containing definitions for the attribute values generated by this converter since its creation.
-