public class SWFPathConstructor extends CubicToQuadPathConstructor implements SWFConstants
currentX, currentY
CONTROL, 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, quadratify
public 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
PathConstructor
move
in interface PathConstructor
move
in class CubicToQuadPathConstructor
IOException
public void line(double x, double y) throws IOException
PathConstructor
line
in interface PathConstructor
line
in class CubicToQuadPathConstructor
IOException
public void quad(double x1, double y1, double x2, double y2) throws IOException
PathConstructor
quad
in interface PathConstructor
IOException
public void closePath(double xd0, double yd0) throws IOException
PathConstructor
closePath
in interface PathConstructor
closePath
in class CubicToQuadPathConstructor
IOException
Copyright © 2014. All rights reserved.