Package com.itextpdf.svg.renderers.path
Class SvgPathShapeFactory
- java.lang.Object
-
- com.itextpdf.svg.renderers.path.SvgPathShapeFactory
-
public class SvgPathShapeFactory extends java.lang.Object
A factory for creatingIPathShape
objects.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SvgPathShapeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IPathShape
createPathShape(java.lang.String name)
Creates a configuredIPathShape
object based on the passed Svg path data instruction tag.static int
getArgumentCount(java.lang.String name)
Finds the appropriate number of arguments for a path command, based on the passed Svg path data instruction tag.
-
-
-
Method Detail
-
createPathShape
public static IPathShape createPathShape(java.lang.String name)
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
public static int getArgumentCount(java.lang.String name)
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
-
-