|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.freehep.graphicsio.AbstractPathConstructor | +--org.freehep.graphicsio.CubicToQuadPathConstructor
Implements the Cubic Bezier Curve PathConstructor functionality in terms of Quad Bezier Curves
Field Summary |
Fields inherited from class org.freehep.graphicsio.AbstractPathConstructor |
currentX, currentY |
Constructor Summary | |
protected |
CubicToQuadPathConstructor(double resolution)
|
Method Summary | |
void |
closePath()
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. |
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)
|
void |
move(double x,
double y)
Makes (x,y) the current point. |
Methods inherited from class org.freehep.graphicsio.AbstractPathConstructor |
addPath, addPath, flush, isEvenOdd |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.freehep.graphicsio.PathConstructor |
quad |
Constructor Detail |
protected CubicToQuadPathConstructor(double resolution)
Method Detail |
public void move(double x, double y) throws IOException
PathConstructor
IOException
public void line(double x, double y) throws IOException
PathConstructor
IOException
public void cubic(double x1, double y1, double x2, double y2, double x3, double y3) throws IOException
PathConstructor
IOException
public void closePath() throws IOException
PathConstructor
IOException
public static void main(String[] args) throws Exception
Exception
|
FreeHEP API Version v1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |