/** * Constructor. Creates an instance of a cubic bezier curve. * * @param x x value for the first anchor point * @param y y value for the first anchor point * @param controlX1 x value for the first control point * @param controlY1 y value for the first control point * @param controlX2 x value for the second control point * @param controlY2 y value for the second control point * @param endX x value for the second anchor point * @param endY y value for the second anchor point */ public BezierCurve(double x, double y, double controlX1, double controlY1, double controlX2, double controlY2, double endX, double endY) { super(ShapeType.BEZIER_CURVE); setControlPoints(new Point2DArray(new Point2D(x, y), new Point2D(controlX1, controlY1), new Point2D(controlX2, controlY2), new Point2D(endX, endY))); }