Class PathShapeMapper

java.lang.Object
com.itextpdf.svg.renderers.path.impl.PathShapeMapper
All Implemented Interfaces:
IPathShapeMapper

public class PathShapeMapper extends Object implements IPathShapeMapper
The implementation of IPathShapeMapper that will be used by sub classes of PathSvgNodeRenderer To map the path-data instructions(moveto, lineto, corveto ...) to their respective implementations.
  • Constructor Details

    • PathShapeMapper

      public PathShapeMapper()
  • Method Details

    • getMapping

      public Map<String,IPathShape> getMapping()
      Description copied from interface: IPathShapeMapper
      Provides a mapping of Path-data instructions' names to path shape classes.
      Specified by:
      getMapping in interface IPathShapeMapper
      Returns:
      a Map with Strings as keys and IPathShape implementations as values
    • getArgumentCount

      public Map<String,Integer> getArgumentCount()
      Description copied from interface: IPathShapeMapper
      Provides a mapping of SVG path element's path-data instruction name to the appropriate number of arguments for a path command, based on this passed SVG path data instruction tag.
      Specified by:
      getArgumentCount in interface IPathShapeMapper
      Returns:
      a Map with Strings as keys and Integers as values