/** * Sets a control point. */ public void setNode(int index, BezierPath.Node p) { path.set(index, p); invalidate(); }
/** Creates a deep copy of the BezierPath. */ @Override public BezierPath clone() { BezierPath that = (BezierPath) super.clone(); for (int i = 0, n = this.size(); i < n; i++) { that.set(i, (Node) this.get(i).clone()); } return that; }