} else if (step.getClass() == LineTo.class) {
LineTo lineTo = (LineTo) step;
path.append(lineTo.isRelativeCoords() ? " l" : " L").append(
lineTo.getX()).append(" ").append(lineTo.getY());
} else if (step.getClass() == CurveTo.class) {
CurveTo curve = (CurveTo) step;
path.append(curve.isRelativeCoords() ? " c" : " C");
path.append(curve.getX1()).append(" ").append(curve.getY1());
path.append(" ").append(curve.getX2()).append(" ").append(
curve.getY2());
path.append(" ").append(curve.getX()).append(" ").append(
curve.getY());
} else if (step.getClass() == Arc.class) {
Arc arc = (Arc) step;
path.append(arc.isRelativeCoords() ? " a" : " A");
path.append(arc.getRx()).append(",").append(arc.getRy());
path.append(" ").append(arc.getxAxisRotation());