/** * Parses a 'S' command. */ protected void parseS() throws ParseException, IOException { current = reader.read(); skipSpaces(); boolean expectNumber = true; for (;;) { switch (current) { default: if (expectNumber) reportUnexpected(current); return; case '+': case '-': case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; } float x2 = parseFloat(); skipCommaSpaces(); float y2 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat(); pathHandler.curvetoCubicSmoothAbs(x2, y2, x, y); expectNumber = skipCommaSpaces2(); } }
/** * Parses a 'S' command. */ protected void parseS() throws ParseException, IOException { current = reader.read(); skipSpaces(); boolean expectNumber = true; for (;;) { switch (current) { default: if (expectNumber) reportUnexpected(current); return; case '+': case '-': case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; } float x2 = parseFloat(); skipCommaSpaces(); float y2 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat(); pathHandler.curvetoCubicSmoothAbs(x2, y2, x, y); expectNumber = skipCommaSpaces2(); } }
/** * Parses a 'S' command. */ protected void parseS() throws ParseException, IOException { current = reader.read(); skipSpaces(); boolean expectNumber = true; for (;;) { switch (current) { default: if (expectNumber) reportUnexpected(current); return; case '+': case '-': case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': break; } float x2 = parseFloat(); skipCommaSpaces(); float y2 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat(); pathHandler.curvetoCubicSmoothAbs(x2, y2, x, y); expectNumber = skipCommaSpaces2(); } }
SVGPathSegCurvetoCubicSmoothAbs s = (SVGPathSegCurvetoCubicSmoothAbs) seg; h.curvetoCubicSmoothAbs (s.getX2(), s.getY2(), s.getX(), s.getY()); break;
SVGPathSegCurvetoCubicSmoothAbs s = (SVGPathSegCurvetoCubicSmoothAbs) seg; h.curvetoCubicSmoothAbs (s.getX2(), s.getY2(), s.getX(), s.getY()); break;