View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. Cubic Curve Segment

    by , 03-06-2012 at 08:49 PM
    CubicCurve2D class used to implement the shape interface. In x,y coordinates space, cubic parametric curve segment is presented by this class. In float & double precision, a cubic curve is specified by using these methods.

    • CubicCurve2D.Double
    • CubicCurve2D.Float

    Curve setting methods are same for the CubicCurve2D and QuadraticCurve class, except 2nd control point.E.g.
    Java Code:
    // create new CubicCurve2D.Double
    CubicCurve2D c = new CubicCurve2D.Double();