public class SWFPathConstructor extends CubicToQuadPathConstructor implements SWFConstants
currentX, currentYCONTROL, DEFAULT_VERSION, DEFINITION, LANGUAGE_JAPANESE, LANGUAGE_KOREAN, LANGUAGE_LATIN, LANGUAGE_SIMPLIFIED_CHINESE, LANGUAGE_TRADITIONAL_CHINESE, TWIPS| Constructor and Description |
|---|
SWFPathConstructor(Vector<SWFShape.Record> path,
int stroke,
int fill0,
int fill1) |
SWFPathConstructor(Vector<SWFShape.Record> path,
int stroke,
int fill0,
int fill1,
double resolution) |
| Modifier and Type | Method and Description |
|---|---|
void |
closePath(double xd0,
double yd0)
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 |
quad(double x1,
double y1,
double x2,
double y2)
Draws a quadratic bezier curve from the current point to (x2, y2) using
the control point (x1, y1) and make (x2, y2) the current point.
|
cubic, intersect, main, midPoint, quadratifypublic SWFPathConstructor(Vector<SWFShape.Record> path, int stroke, int fill0, int fill1)
public SWFPathConstructor(Vector<SWFShape.Record> path, int stroke, int fill0, int fill1, double resolution)
public void move(double x,
double y)
throws IOException
PathConstructormove in interface PathConstructormove in class CubicToQuadPathConstructorIOExceptionpublic void line(double x,
double y)
throws IOException
PathConstructorline in interface PathConstructorline in class CubicToQuadPathConstructorIOExceptionpublic void quad(double x1,
double y1,
double x2,
double y2)
throws IOException
PathConstructorquad in interface PathConstructorIOExceptionpublic void closePath(double xd0,
double yd0)
throws IOException
PathConstructorclosePath in interface PathConstructorclosePath in class CubicToQuadPathConstructorIOExceptionCopyright © 2014. All rights reserved.