[]
Represents a path for drawing, filling, or clipping.
get figureHasSegments(): boolean;
Gets a value indicating if the active figure contains one or more segments.
boolean
get figureStarted(): boolean;
Gets a value indicating if there is an active figure to update.
boolean
get fillMode(): FillMode;
Gets or sets the method used to determine which points are inside the geometry described by this GraphicsPath and which points are outside.
set fillMode(fillMode): void;
Gets or sets the method used to determine which points are inside the geometry described by this GraphicsPath and which points are outside.
void
get id(): number;
Gets the reference to the object.
number
get isClosed(): boolean;
Gets a value indicating if the path is closed for subsequent modifications.
boolean
get om(): ObjectManager;
Gets the owner ObjectManager instance.
addArc(arcProperties): void;
Adds a single arc to the path geometry.
The arc segment to add to the figure.
void
addBezier(
xP1,
yP1,
xP2,
yP2,
xEndPoint,
yEndPoint): void;
Creates a cubic Bezier curve between the current point and the specified end point.
number
The X coordinate of the first control point for the Bezier segment.
number
The Y coordinate of the first control point for the Bezier segment.
number
The X coordinate of the second control point for the Bezier segment.
number
The Y coordinate of the second control point for the Bezier segment.
number
The X coordinate of the end point for the Bezier segment.
number
The Y coordinate of the end point for the Bezier segment.
void
addEllipse(
x,
y,
width,
height): void;
Adds an ellipse figure to the path. Note! The method calls the GraphicsPath#beginFigure and GraphicsPath#endFigure methods.
number
The X coordinate of the rectangle enclosing an ellipse.
number
The Y coordinate of the rectangle enclosing an ellipse.
number
The width of the rectangle enclosing an ellipse.
number
The height of the rectangle enclosing an ellipse.
void
addEllipse(bounds): void;
Adds an ellipse figure to the path. Note! The method calls the GraphicsPath#beginFigure and GraphicsPath#endFigure methods.
The ellipse's bounds.
void
addLine(x, y): void;
Creates a line segment between the current point and the specified end point.
number
The X coordinate of the end point of the line to draw.
number
The Y coordinate of the end point of the line to draw.
void
addQuadraticBezier(
xP1,
yP1,
xEndPoint,
yEndPoint): void;
Creates a quadratic Bezier curve between the current point and the specified end point.
number
The X coordinate of the control point for the quadratic Bezier segment.
number
The Y coordinate of the control point for the quadratic Bezier segment.
number
The X coordinate of the end point for the quadratic Bezier segment.
number
The Y coordinate of the end point for the quadratic Bezier segment.
void
addRect(
x,
y,
width,
height): void;
Adds a rectangular figure to the path. Note! The method calls the GraphicsPath#beginFigure and GraphicsPath#endFigure methods.
number
The X coordinate of the rectangle.
number
The Y coordinate of the rectangle.
number
The width of the rectangle.
number
The height of the rectangle.
void
addRect(bounds): void;
Adds a rectangular figure to the path. Note! The method calls the GraphicsPath#beginFigure and GraphicsPath#endFigure methods.
The rectangle bounds.
void
beginFigure(x, y): void;
Starts a new figure at the specified point.
number
The X coordinate at which to begin the new figure.
number
The Y coordinate at which to begin the new figure.
void
cancelFigure(): void;
Discards the active figure.
void
close(): void;
Closes the path for modifications. The path cannot be modified after it is closed.
void
endFigure(closeFigure): void;
Ends the current figure; optionally, closes it.
boolean
A value that indicates whether the current figure is closed. If the figure is closed, a line is drawn between the current point and the start point specified by GraphicsPath#beginFigure.
void
free(): void;
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
getBounds(transform?): Rect;
Returns a rectangle that bounds this GraphicsPath when it is transformed by the specified Transform.
The transform to apply to this path before calculating its bounds.
A rectangle that bounds this path.
rebind(omTo): void;
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void