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 IPathShape
createPathShape
(String name) Creates a configuredIPathShape
object based on the passed Svg path data instruction tag.static int
getArgumentCount
(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 configuredIPathShape
object 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
-