public abstract class CubicToQuadPathConstructor extends AbstractPathConstructor
currentX, currentY| Modifier | Constructor and Description |
|---|---|
protected |
CubicToQuadPathConstructor(double resolution) |
| Modifier and Type | Method and Description |
|---|---|
void |
closePath(double x0,
double y0)
Closes the path by drawing a straight line to the last point which was
argument to move.
|
void |
cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draws a cubic bezier curve from the current point to (x3, y3) using the
control points (x1, y1) and (x2, y2) and make (x3, y3) the current point.
|
static Point2D |
intersect(Point2D p1,
Point2D p2,
Point2D p3,
Point2D p4) |
void |
line(double x,
double y)
Draws a line from the current point to (x,y) and make (x,y) the current
point.
|
static void |
main(String[] args) |
static Point2D |
midPoint(Point2D a,
Point2D b) |
void |
move(double x,
double y)
Makes (x,y) the current point.
|
void |
quadratify(Point2D a,
Point2D b,
Point2D c,
Point2D d) |
addPath, addPath, addPath, flush, isEvenOddclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitquadprotected CubicToQuadPathConstructor(double resolution)
public void move(double x,
double y)
throws IOException
PathConstructorIOExceptionpublic void line(double x,
double y)
throws IOException
PathConstructorIOExceptionpublic void cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
throws IOException
PathConstructorIOExceptionpublic void closePath(double x0,
double y0)
throws IOException
PathConstructorIOExceptionpublic void quadratify(Point2D a, Point2D b, Point2D c, Point2D d) throws IOException
IOExceptionCopyright © 2014. All rights reserved.