public class SvgPath implements PathAdapter
Implements PathAdapter functions to allow to generate some graphic elements indiscriminately on Canvas or SVG.
| Constructor and Description |
|---|
SvgPath(Path cmdPath)
Implements PathAdapter functions to allow to generate some graphic elements
indiscriminately on Canvas or SVG.
|
SvgPath()
Implements PathAdapter functions to allow to generate some graphic elements
indiscriminately on Canvas or SVG.
|
| Modifier and Type | Method and Description |
|---|---|
void |
arc(double centerX,
double centerY,
double radius,
double startAngle,
double endAngle,
boolean counterClockWise) |
void |
arcTo(double cpx,
double cpy,
double x,
double y,
double radius) |
void |
bezierCurveTo(double cpx1,
double cpy1,
double cpx2,
double cpy2,
double x,
double y) |
void |
clearPath() |
void |
closePath() |
java.lang.String |
getPath() |
void |
lineTo(double x,
double y) |
void |
moveTo(double x,
double y) |
void |
quadraticCurveTo(double cpx,
double cpy,
double x,
double y) |
void |
rect(double x,
double y,
double w,
double h)
Deprecated.
|
arc, arcTo, bezierCurveTo, closePath, lineTo, moveTo, quadraticCurveTo, rectpublic SvgPath(Path cmdPath)
Implements PathAdapter functions to allow to generate some graphic elements indiscriminately on Canvas or SVG.
public SvgPath()
Implements PathAdapter functions to allow to generate some graphic elements indiscriminately on Canvas or SVG.
public java.lang.String getPath()
public void clearPath()
public void arc(double centerX,
double centerY,
double radius,
double startAngle,
double endAngle,
boolean counterClockWise)
public void arcTo(double cpx,
double cpy,
double x,
double y,
double radius)
public void bezierCurveTo(double cpx1,
double cpy1,
double cpx2,
double cpy2,
double x,
double y)
public void closePath()
public void lineTo(double x,
double y)
public void moveTo(double x,
double y)
public void quadraticCurveTo(double cpx,
double cpy,
double x,
double y)
public void rect(double x,
double y,
double w,
double h)