/** * 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.curvetoCubicSmoothRel(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.curvetoCubicSmoothRel(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.curvetoCubicSmoothRel(x2, y2, x, y); expectNumber = skipCommaSpaces2(); } }
SVGPathSegCurvetoCubicSmoothRel s = (SVGPathSegCurvetoCubicSmoothRel) seg; h.curvetoCubicSmoothRel (s.getX2(), s.getY2(), s.getX(), s.getY()); break;
SVGPathSegCurvetoCubicSmoothRel s = (SVGPathSegCurvetoCubicSmoothRel) seg; h.curvetoCubicSmoothRel (s.getX2(), s.getY2(), s.getX(), s.getY()); break;