Class SvgPathShapeFactory

java.lang.Object
com.itextpdf.svg.renderers.path.SvgPathShapeFactory

public class SvgPathShapeFactory extends Object
A factory for creating IPathShape objects.
  • Method Details

    • createPathShape

      public static IPathShape createPathShape (String name)
      Creates a configured IPathShape 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 (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