@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Path2D")
public class Path2D
extends JsObject
| Constructor and Description |
|---|
Path2D()
The Path2D() constructor returns a newly instantiated Path2D object, optionally with another path as an argument (creates a copy), or optionally with a string consisting of SVG path data.
|
Path2D(Path2D path)
The Path2D() constructor returns a newly instantiated Path2D object, optionally with another path as an argument (creates a copy), or optionally with a string consisting of SVG path data.
|
Path2D(java.lang.String path)
The Path2D() constructor returns a newly instantiated Path2D object, optionally with another path as an argument (creates a copy), or optionally with a string consisting of SVG path data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPath(Path2D path)
The Path2D.addPath() method of the Canvas 2D API adds one Path2D object to another Path2D object.
|
void |
addPath(Path2D path,
DOMMatrix2DInit transform)
The Path2D.addPath() method of the Canvas 2D API adds one Path2D object to another Path2D object.
|
void |
arc(double x,
double y,
double radius,
double startAngle,
double endAngle) |
void |
arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean counterclockwise) |
void |
arcTo(double x1,
double y1,
double x2,
double y2,
double radius) |
void |
bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y) |
void |
closePath() |
void |
ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle) |
void |
ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle,
boolean counterclockwise) |
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) |
void |
roundRect(double x,
double y,
double w,
double h,
JsArray<UnrestrictedDoubleOrDOMPointInitUnion> radii) |
void |
roundRect(double x,
double y,
double w,
double h,
UnrestrictedDoubleOrDOMPointInitUnion[] radii) |
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic Path2D(@Nonnull
Path2D path)
public Path2D(@Nonnull
java.lang.String path)
public Path2D()
public void addPath(@Nonnull
Path2D path,
@Nonnull
DOMMatrix2DInit transform)
public void addPath(@Nonnull
Path2D path)
public void arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
boolean counterclockwise)
public void arc(double x,
double y,
double radius,
double startAngle,
double endAngle)
public void arcTo(double x1,
double y1,
double x2,
double y2,
double radius)
public void bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y)
public void closePath()
public void ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle,
boolean counterclockwise)
public void ellipse(double x,
double y,
double radiusX,
double radiusY,
double rotation,
double startAngle,
double endAngle)
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)
public void roundRect(double x,
double y,
double w,
double h,
@Nonnull
JsArray<UnrestrictedDoubleOrDOMPointInitUnion> radii)
public void roundRect(double x,
double y,
double w,
double h,
@Nonnull
UnrestrictedDoubleOrDOMPointInitUnion[] radii)