Java 2D Graphics 3.2.2 java.awt.geom.PathIterator A Shape’s border
Java 2D Graphics public static final int SEG_LINETO This segment type is a straight line, drawn from the last point in the path. public static final int SEG_QUADTO This segment type is a curved line that is represented by a quadratic (second-order) equation. The segment is fully described by two endpoints and a control point, which determines the curve’s tangents at its endpoints. The previous point in the path is used as the first endpoint. The other endpoint and the control point need to be specified. Imagine an invisible string running between the control point and the curve as you move the control point around, the curve is pulled toward the control point. Figure 3.4 shows a few quadratic curves. Figure 3.5 shows the same quadratic curves with the endpoints, control points, and tangent lines shown. Figure 3.4. Quadratic curves Figure 3.5. Endpoints, control points, and tangent lines of quadratic curves public static final int SEG_CUBICTO This segment type represents a B zier cubic curve. A cubic curve is basically a quadratic curve with an additional control point; mathematically, it is described by a third-order equation and can be specified with two endpoints and two control points. Each control point determines the tangent of the curve at one of the endpoints. Figure 3.6 shows a few cubic curves, and Figure 3.7 shows the endpoints, control points, and tangent lines of the same curves. Figure 3.6. Cubic curves Figure 3.7. Endpoints, control points, and tangent lines of cubic curves page 31
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Tomcat Web Hosting services