Class PathShapeMapper
- java.lang.Object
-
- com.itextpdf.svg.renderers.path.impl.PathShapeMapper
-
- All Implemented Interfaces:
IPathShapeMapper
public class PathShapeMapper extends java.lang.Object implements IPathShapeMapper
The implementation ofIPathShapeMapperthat will be used by sub classes ofPathSvgNodeRendererTo map the path-data instructions(moveto, lineto, corveto ...) to their respective implementations.
-
-
Constructor Summary
Constructors Constructor Description PathShapeMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Integer>getArgumentCount()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.java.util.Map<java.lang.String,IPathShape>getMapping()Provides a mapping of Path-data instructions' names to path shape classes.
-
-
-
Method Detail
-
getMapping
public java.util.Map<java.lang.String,IPathShape> getMapping()
Description copied from interface:IPathShapeMapperProvides a mapping of Path-data instructions' names to path shape classes.- Specified by:
getMappingin interfaceIPathShapeMapper- Returns:
- a
Mapwith Strings as keys andIPathShapeimplementations as values
-
getArgumentCount
public java.util.Map<java.lang.String,java.lang.Integer> getArgumentCount()
Description copied from interface:IPathShapeMapperProvides 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:
getArgumentCountin interfaceIPathShapeMapper- Returns:
- a
Mapwith Strings as keys and Integers as values
-
-