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

PointMode.Companion

public static class PointMode.Companion


Summary

Public methods

static final @NonNull PointMode

Draw each sequence of two points as a line segment.

static final @NonNull PointMode

Draw each point separately.

static final @NonNull PointMode

Draw the entire sequence of point as one line.

Public methods

getLines

public static final @NonNull PointMode getLines()

Draw each sequence of two points as a line segment.

If the number of points is odd, then the last point is ignored.

The lines are stroked as described by the Paint (ignoring Paint.style).

getPoints

public static final @NonNull PointMode getPoints()

Draw each point separately.

If the Paint.strokeCap is StrokeCap.Round, then each point is drawn as a circle with the diameter of the Paint.strokeWidth, filled as described by the Paint (ignoring Paint.style).

Otherwise, each point is drawn as an axis-aligned square with sides of length Paint.strokeWidth, filled as described by the Paint (ignoring Paint.style).

getPolygon

public static final @NonNull PointMode getPolygon()

Draw the entire sequence of point as one line.

The lines are stroked as described by the Paint (ignoring Paint.style).