public class PSPathConstructor extends QuadToCubicPathConstructor
currentX, currentY| Constructor and Description |
|---|
PSPathConstructor(PrintStream os,
boolean useProlog,
boolean intPrecision) |
| 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.
|
protected String |
fixedPrecision(double d) |
void |
line(double x,
double y)
Draws a line from the current point to (x,y) and make (x,y) the current
point.
|
void |
move(double x,
double y)
Makes (x,y) the current point.
|
quadpublic PSPathConstructor(PrintStream os, boolean useProlog, boolean intPrecision)
public void move(double x,
double y)
throws IOException
PathConstructormove in interface PathConstructormove in class QuadToCubicPathConstructorIOExceptionpublic void line(double x,
double y)
throws IOException
PathConstructorline in interface PathConstructorline in class QuadToCubicPathConstructorIOExceptionpublic void cubic(double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
throws IOException
PathConstructorcubic in interface PathConstructorcubic in class QuadToCubicPathConstructorIOExceptionpublic void closePath(double x0,
double y0)
throws IOException
PathConstructorclosePath in interface PathConstructorclosePath in class QuadToCubicPathConstructorIOExceptionprotected String fixedPrecision(double d)
Copyright © 2014. All rights reserved.