public static interface PathUtils.PathHandler
| Modifier and Type | Method and Description |
|---|---|
void |
arcAbs(double rx,
double ry,
double xaxisrotation,
boolean largearcflag,
boolean sweepflag,
double x,
double y)
Absolute elliptical arc
|
void |
arcRel(double rx,
double ry,
double xaxisrotation,
boolean largearcflag,
boolean sweepflag,
double x,
double y)
Relative elliptical arc
|
void |
closePathAbs()
close the path
|
void |
closePathRel()
close the path
|
void |
curveToAbs(double x1,
double y1,
double x2,
double y2,
double x,
double y)
Absolute cubic curve to
|
void |
curveToRel(double x1,
double y1,
double x2,
double y2,
double x,
double y)
Relative cubic curve to
|
void |
error(java.lang.String error)
Error callback
|
void |
hlineToAbs(double x)
Absolute horizontal line to
|
void |
hlineToRel(double x)
Relative horizontal line to
|
void |
lineToAbs(double x,
double y)
Absolute line to
|
void |
lineToRel(double x,
double y)
Relative line to
|
void |
moveToAbs(double x,
double y)
Absolute move to
|
void |
moveToRel(double x,
double y)
Relative move to
|
void |
quadCurveToAbs(double x1,
double y1,
double x,
double y)
Absolute quadratic Bézier curve
|
void |
quadCurveToRel(double x1,
double y1,
double x,
double y)
Relative quadratic Bézier curve
|
void |
scurveToAbs(double x2,
double y2,
double x,
double y)
Absolute smooth cubic curve to
|
void |
scurveToRel(double x2,
double y2,
double x,
double y)
Relative smooth cubic curve to
|
void |
squadCurveToAbs(double x,
double y)
Relative smooth quadratic curve to
|
void |
squadCurveToRel(double x,
double y)
Relative smooth quadratic curve to
|
void |
vlineToAbs(double y)
Absolute vertical line to
|
void |
vlineToRel(double y)
Relative vertical line to
|
void moveToAbs(double x,
double y)
x - the xy - the yvoid moveToRel(double x,
double y)
x - the xy - the yvoid error(java.lang.String error)
error - the error messagevoid curveToRel(double x1,
double y1,
double x2,
double y2,
double x,
double y)
x1 - the X coordinate of the first Bézier control pointy1 - the Y coordinate of the first Bézier control pointx2 - the X coordinate of the second Bézier control pointy2 - the Y coordinate of the second Bézier control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid curveToAbs(double x1,
double y1,
double x2,
double y2,
double x,
double y)
x1 - the X coordinate of the first Bézier control pointy1 - the Y coordinate of the first Bézier control pointx2 - the X coordinate of the second Bézier control pointy2 - the Y coordinate of the second Bézier control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid closePathRel()
void closePathAbs()
void arcRel(double rx,
double ry,
double xaxisrotation,
boolean largearcflag,
boolean sweepflag,
double x,
double y)
rx - horizontal radius of the arcry - vertical radius of the arcxaxisrotation - the x-axis rotation in degreeslargearcflag - large arg flag: determines which arc to use (large/small)sweepflag - sweep flag: determines which arc to usex - horizontal position of the arc end pointy - vertical position of the arc end pointvoid arcAbs(double rx,
double ry,
double xaxisrotation,
boolean largearcflag,
boolean sweepflag,
double x,
double y)
rx - horizontal radius of the arcry - vertical radius of the arcxaxisrotation - the x-axis rotation in degreeslargearcflag - large arg flag: determines which arc to use (large/small)sweepflag - sweep flag: determines which arc to usex - horizontal position of the arc end pointy - vertical position of the arc end pointvoid quadCurveToRel(double x1,
double y1,
double x,
double y)
x1 - the X coordinate of the quadratic control pointy1 - the Y coordinate of the quadratic control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid quadCurveToAbs(double x1,
double y1,
double x,
double y)
x1 - the X coordinate of the quadratic control pointy1 - the Y coordinate of the quadratic control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid vlineToRel(double y)
y - the y coordinatevoid vlineToAbs(double y)
y - the y coordinatevoid hlineToRel(double x)
x - the x coordinatevoid hlineToAbs(double x)
x - the x coordinatevoid lineToRel(double x,
double y)
x - the x coordinatey - the y coordinatevoid lineToAbs(double x,
double y)
x - the x coordinatey - the y coordinatevoid scurveToRel(double x2,
double y2,
double x,
double y)
x2 - the X coordinate of the second Bézier control pointy2 - the Y coordinate of the second Bézier control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid scurveToAbs(double x2,
double y2,
double x,
double y)
x2 - the X coordinate of the second Bézier control pointy2 - the Y coordinate of the second Bézier control pointx - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid squadCurveToRel(double x,
double y)
x - the X coordinate of the final end pointy - the Y coordinate of the final end pointvoid squadCurveToAbs(double x,
double y)
x - the X coordinate of the final end pointy - the Y coordinate of the final end point