Package com.itextpdf.svg.renderers.path
Class SvgPathShapeFactory
java.lang.Object
com.itextpdf.svg.renderers.path.SvgPathShapeFactory
A factory for creating
IPathShape objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IPathShapecreatePathShape(String name) Creates a configuredIPathShapeobject based on the passed Svg path data instruction tag.static intgetArgumentCount(String name) Finds the appropriate number of arguments for a path command, based on the passed Svg path data instruction tag.
-
Method Details
-
createPathShape
Creates a configuredIPathShapeobject based on the passed Svg path data instruction tag.- Parameters:
-
name- svg path element's path-data instruction name. - Returns:
- IPathShape implementation
-
getArgumentCount
Finds the appropriate number of arguments for a path command, based on the passed Svg path data instruction tag.- Parameters:
-
name- svg path element's path-data instruction name. - Returns:
- an integer value with the required number of arguments or null if there is no mapping for the given value
-