code: public void setCurve (XY p1, XY cp1, XY cp2, XY p2) {
          setCurve(p1.x(), p1.y(), cp1.x(), cp1.y(),
                   cp2.x(), cp2.y(), p2.x(), p2.y());
      }
docs: Configures the start, control and end points for this curve.