PathNode

Known direct subclasses
PathNode.ArcTo

Draws an elliptical arc from the current point to a new point using absolute coordinates.

PathNode.Close

Closes the current subpath by drawing a straight line from the current point to the initial point of the subpath.

PathNode.CurveTo

Draws a cubic Bézier curve from the current point to a new point using absolute coordinates.

PathNode.HorizontalTo

Draws a horizontal line from the current point to the specified absolute x-coordinate.

PathNode.LineTo

Draws a line from the current point to the specified absolute (x,y) coordinate.

PathNode.MoveTo

Starts a new subpath at the given absolute (x,y) coordinate.

PathNode.QuadTo

Draws a quadratic Bézier curve from the current point to a new point using absolute coordinates.

PathNode.ReflectiveCurveTo

Draws a smooth cubic Bézier curve using absolute coordinates.

PathNode.ReflectiveQuadTo

Draws a smooth quadratic Bézier curve using absolute coordinates.

PathNode.RelativeArcTo

Draws an elliptical arc from the current point to a new point using relative coordinates.

PathNode.RelativeCurveTo

Draws a cubic Bézier curve from the current point to a new point using relative coordinates.

PathNode.RelativeHorizontalTo

Draws a horizontal line from the current point, offset by a relative distance dx.

PathNode.RelativeLineTo

Draws a line from the current point to a new point, defined by a relative offset.

PathNode.RelativeMoveTo

Starts a new subpath at a point defined by a relative offset from the current point.

PathNode.RelativeQuadTo

Draws a quadratic Bézier curve from the current point to a new point using relative coordinates.

PathNode.RelativeReflectiveCurveTo

Draws a smooth cubic Bézier curve using relative coordinates.

PathNode.RelativeReflectiveQuadTo

Draws a smooth quadratic Bézier curve using relative coordinates.

PathNode.RelativeVerticalTo

Draws a vertical line from the current point, offset by a relative distance dy.

PathNode.VerticalTo

Draws a vertical line from the current point to the specified absolute y-coordinate.


Represents a single command in a vector graphics path. Each node corresponds to a command in a standard path data specification.

Summary

Nested types

Draws an elliptical arc from the current point to a new point using absolute coordinates.

Closes the current subpath by drawing a straight line from the current point to the initial point of the subpath.

Draws a cubic Bézier curve from the current point to a new point using absolute coordinates.

Draws a horizontal line from the current point to the specified absolute x-coordinate.

Draws a line from the current point to the specified absolute (x,y) coordinate.

Starts a new subpath at the given absolute (x,y) coordinate.

Draws a quadratic Bézier curve from the current point to a new point using absolute coordinates.

Draws a smooth cubic Bézier curve using absolute coordinates.

Draws a smooth quadratic Bézier curve using absolute coordinates.

Draws an elliptical arc from the current point to a new point using relative coordinates.

Draws a cubic Bézier curve from the current point to a new point using relative coordinates.

Draws a horizontal line from the current point, offset by a relative distance dx.

Draws a line from the current point to a new point, defined by a relative offset.

Starts a new subpath at a point defined by a relative offset from the current point.

Draws a quadratic Bézier curve from the current point to a new point using relative coordinates.

Draws a smooth cubic Bézier curve using relative coordinates.

Draws a smooth quadratic Bézier curve using relative coordinates.

Draws a vertical line from the current point, offset by a relative distance dy.

Draws a vertical line from the current point to the specified absolute y-coordinate.

Protected constructors

PathNode(isCurve: Boolean, isQuad: Boolean)
Cmn

Public properties

Boolean

true if this command is a cubic Bézier curve, false otherwise.

Cmn
Boolean

true if this command is a quadratic Bézier curve, false otherwise.

Cmn

Protected constructors

PathNode

protected PathNode(isCurve: Boolean = false, isQuad: Boolean = false)

Public properties

isCurve

val isCurveBoolean

true if this command is a cubic Bézier curve, false otherwise.

isQuad

val isQuadBoolean

true if this command is a quadratic Bézier curve, false otherwise.