List of utility methods to do Draw Bezier Curve
void | drawBezier(Graphics2D g, float x1, float y1, float ctrlx1, float ctrly1, float ctrlx2, float ctrly2, float x2, float y2) draw Bezier g.draw(new CubicCurve2D.Float(x1, y1, ctrlx1, ctrly1, ctrlx2, ctrly2, x2, y2));
|
double | drawBezier(Graphics2D g2, @Nonnull Point2D p0, @Nonnull Point2D p1, @Nonnull Point2D p2, @Nonnull Point2D p3) Draw a cubic Bezier curve GeneralPath path = new GeneralPath(); double result = plotBezier(path, p0, p1, p2, p3, 0, 0.0); g2.draw(path); return result; |
GeneralPath | drawBezierCurve(AffineTransform affine, Vector draw Bezier Curve if (affine == null) { affine = new AffineTransform(); affine.setToIdentity(); boolean drawPath = true; if (g == null) drawPath = false; int pixelSize = 1; ... |