public abstract class PolylinePathConstructor extends CubicToLinePathConstructor
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
protected boolean |
fill |
currentX, currentY
Constructor and Description |
---|
PolylinePathConstructor(boolean fill) |
PolylinePathConstructor(boolean fill,
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 |
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.
|
void |
writePolyline() |
protected abstract void |
writePolyline(Vector<Point2D.Double> polyline) |
cubic
quad
public PolylinePathConstructor(boolean fill)
public PolylinePathConstructor(boolean fill, double resolution)
public void move(double x, double y) throws IOException
PathConstructor
move
in interface PathConstructor
move
in class QuadToCubicPathConstructor
IOException
public void line(double x, double y) throws IOException
PathConstructor
line
in interface PathConstructor
line
in class QuadToCubicPathConstructor
IOException
public void closePath(double x0, double y0) throws IOException
PathConstructor
closePath
in interface PathConstructor
closePath
in class QuadToCubicPathConstructor
IOException
public void writePolyline() throws IOException
IOException
protected abstract void writePolyline(Vector<Point2D.Double> polyline) throws IOException
IOException
Copyright © 2014. All rights reserved.