src/main/java/com/mxgraph/util/svg/AWTPathProducer.java
public static Shape createShape(String text, int wr) throws ParseException
	{
		AWTPathProducer ph = new AWTPathProducer();

		ph.setWindingRule(wr);
		PathParser p = new PathParser(ph);
		p.parse(text);

		return ph.getShape();
	}
/**
	 * Utility method for creating an ExtendedGeneralPath.
	 * @param text The text representation of the path specification.
	 * @param wr The winding rule to use for creating the path.
	 */
Utility method for creating an ExtendedGeneralPath.
@param text The text representation of the path specification.
@param wr The winding rule to use for creating the path.
Utility method for creating an ExtendedGeneralPath . @param text The text representation of the path specification . @param wr The winding rule to use for creating the path .
public static Shape createShape(String text, int wr) throws ParseException
	{
		AWTPathProducer ph = new AWTPathProducer();
		ph.setWindingRule(wr);
		PathParser p = new PathParser(ph);
		p.parse(text);
		return ph.getShape();
	}
public static Shape createShape ( String text , int wr ) throws ParseException { AWTPathProducer ph = new AWTPathProducer ( ) ; ph . setWindingRule ( wr ) ; PathParser p = new PathParser ( ph ) ; p . parse ( text ) ; return ph . getShape ( ) ; }
Utility method for creating an ExtendedGeneralPath.
Utility method for creating an ExtendedGeneralPath .