Class SvgPathShapeFactory


  • public class SvgPathShapeFactory
    extends java.lang.Object
    A factory for creating IPathShape 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 configured IPathShape 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SvgPathShapeFactory

        private SvgPathShapeFactory()
    • Method Detail

      • createPathShape

        public static IPathShape createPathShape​(java.lang.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​(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