{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

PathBuilder

public final class PathBuilder


Summary

Public constructors

Public methods

final @NonNull PathBuilder
arcTo(
    float horizontalEllipseRadius,
    float verticalEllipseRadius,
    float theta,
    boolean isMoreThanHalf,
    boolean isPositiveArc,
    float x1,
    float y1
)
final @NonNull PathBuilder
arcToRelative(
    float a,
    float b,
    float theta,
    boolean isMoreThanHalf,
    boolean isPositiveArc,
    float dx1,
    float dy1
)
final @NonNull PathBuilder
final @NonNull PathBuilder
curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
final @NonNull PathBuilder
curveToRelative(
    float dx1,
    float dy1,
    float dx2,
    float dy2,
    float dx3,
    float dy3
)
final @NonNull List<@NonNull PathNode>
final @NonNull PathBuilder
final @NonNull PathBuilder
final @NonNull PathBuilder
lineTo(float x, float y)
final @NonNull PathBuilder
lineToRelative(float dx, float dy)
final @NonNull PathBuilder
moveTo(float x, float y)
final @NonNull PathBuilder
moveToRelative(float dx, float dy)
final @NonNull PathBuilder
quadTo(float x1, float y1, float x2, float y2)
final @NonNull PathBuilder
quadToRelative(float dx1, float dy1, float dx2, float dy2)
final @NonNull PathBuilder
reflectiveCurveTo(float x1, float y1, float x2, float y2)
final @NonNull PathBuilder
reflectiveCurveToRelative(float dx1, float dy1, float dx2, float dy2)
final @NonNull PathBuilder
reflectiveQuadTo(float x1, float y1)
final @NonNull PathBuilder
reflectiveQuadToRelative(float dx1, float dy1)
final @NonNull PathBuilder
verticalLineTo(float y)
final @NonNull PathBuilder

Public constructors

PathBuilder

public PathBuilder()

Public methods

arcTo

public final @NonNull PathBuilder arcTo(
    float horizontalEllipseRadius,
    float verticalEllipseRadius,
    float theta,
    boolean isMoreThanHalf,
    boolean isPositiveArc,
    float x1,
    float y1
)

arcToRelative

public final @NonNull PathBuilder arcToRelative(
    float a,
    float b,
    float theta,
    boolean isMoreThanHalf,
    boolean isPositiveArc,
    float dx1,
    float dy1
)

close

public final @NonNull PathBuilder close()

curveTo

public final @NonNull PathBuilder curveTo(float x1, float y1, float x2, float y2, float x3, float y3)

curveToRelative

public final @NonNull PathBuilder curveToRelative(
    float dx1,
    float dy1,
    float dx2,
    float dy2,
    float dx3,
    float dy3
)

getNodes

public final @NonNull List<@NonNull PathNodegetNodes()

horizontalLineTo

public final @NonNull PathBuilder horizontalLineTo(float x)

horizontalLineToRelative

public final @NonNull PathBuilder horizontalLineToRelative(float dx)

lineTo

public final @NonNull PathBuilder lineTo(float x, float y)

lineToRelative

public final @NonNull PathBuilder lineToRelative(float dx, float dy)

moveTo

public final @NonNull PathBuilder moveTo(float x, float y)

moveToRelative

public final @NonNull PathBuilder moveToRelative(float dx, float dy)

quadTo

public final @NonNull PathBuilder quadTo(float x1, float y1, float x2, float y2)

quadToRelative

public final @NonNull PathBuilder quadToRelative(float dx1, float dy1, float dx2, float dy2)

reflectiveCurveTo

public final @NonNull PathBuilder reflectiveCurveTo(float x1, float y1, float x2, float y2)

reflectiveCurveToRelative

public final @NonNull PathBuilder reflectiveCurveToRelative(float dx1, float dy1, float dx2, float dy2)

reflectiveQuadTo

public final @NonNull PathBuilder reflectiveQuadTo(float x1, float y1)

reflectiveQuadToRelative

public final @NonNull PathBuilder reflectiveQuadToRelative(float dx1, float dy1)

verticalLineTo

public final @NonNull PathBuilder verticalLineTo(float y)

verticalLineToRelative

public final @NonNull PathBuilder verticalLineToRelative(float dy)