static protected GeneralPath buildPath(String text, int windingRule) { PathCommand[] commands = parsePathList(text); int numKnots = 2; for (int i = 0; i < commands.length; i++) { numKnots += commands[i].getNumKnotsAdded(); } GeneralPath path = new GeneralPath(windingRule, numKnots); BuildHistory hist = new BuildHistory(); for (int i = 0; i < commands.length; i++) { PathCommand cmd = commands[i]; cmd.appendPath(path, hist); } return path; }
static protected GeneralPath buildPath(String text, int windingRule) { PathCommand[] commands = parsePathList(text); int numKnots = 2; for (int i = 0; i < commands.length; i++) { numKnots += commands[i].getNumKnotsAdded(); } GeneralPath path = new GeneralPath(windingRule, numKnots); BuildHistory hist = new BuildHistory(); for (int i = 0; i < commands.length; i++) { PathCommand cmd = commands[i]; cmd.appendPath(path, hist); } return path; }
static protected GeneralPath buildPath(String text, int windingRule) { PathCommand[] commands = parsePathList(text); int numKnots = 2; for (int i = 0; i < commands.length; i++) { numKnots += commands[i].getNumKnotsAdded(); } GeneralPath path = new GeneralPath(windingRule, numKnots); BuildHistory hist = new BuildHistory(); for (int i = 0; i < commands.length; i++) { PathCommand cmd = commands[i]; cmd.appendPath(path, hist); } return path; }
static protected GeneralPath buildPath(String text, int windingRule) { PathCommand[] commands = parsePathList(text); int numKnots = 2; for (int i = 0; i < commands.length; i++) { numKnots += commands[i].getNumKnotsAdded(); } GeneralPath path = new GeneralPath(windingRule, numKnots); BuildHistory hist = new BuildHistory(); for (int i = 0; i < commands.length; i++) { PathCommand cmd = commands[i]; cmd.appendPath(path, hist); } return path; }