Example usage for Java java.awt.geom Path2D.Float fields, constructors, methods, implement or subclass
The text is from its open source code.
void | append(float x, float y) |
void | append(double x, double y) |
void | append(Shape s, boolean connect) Appends the geometry of the specified Shape object to the path, possibly connecting the new geometry to the existing path segments with a line segment. |
void | append(PathIterator pi, boolean connect) Appends the geometry of the specified PathIterator object to the path, possibly connecting the new geometry to the existing path segments with a line segment. |
void | closePath() Closes the current subpath by drawing a straight line back to the coordinates of the last moveTo . |
void | curveTo(double x1, double y1, double x2, double y2, double x3, double y3) Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3) , using the specified points (x1,y1) and (x2,y2) as Bézier control points. |
void | lineTo(double x, double y) Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates specified in double precision. |
void | moveTo(double x, double y) Adds a point to the path by moving to the specified coordinates specified in double precision. |
void | quadTo(double x1, double y1, double x2, double y2) Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2) , using the specified point (x1,y1) as a quadratic parametric control point. |