org.apache.batik.svggen
public class SVGTransform extends AbstractSVGConverter
Constructor Summary | |
---|---|
SVGTransform(SVGGeneratorContext generatorContext) |
Method Summary | |
---|---|
SVGDescriptor | toSVG(GraphicContext gc)
Converts part or all of the input GraphicContext into
a set of attribute/value pairs and related definitions
|
String | toSVGTransform(GraphicContext gc) |
String | toSVGTransform(TransformStackElement[] transformStack)
This method tries to collapse the transform stack into an SVG
string as compact as possible while still conveying the semantic
of the stack. |
Parameters: generatorContext used by converter to handle precision or to create elements.
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
Parameters: gc GraphicContext whose transform stack should be converted to SVG.
Returns: the value of an SVG attribute equivalent to the input GraphicContext's transform stack.
Parameters: transformStack sequence of transform that should be converted to an SVG transform attribute equivalent