StrokeCap


@RequiresCarApi(value = 9)
@ExperimentalCarApi
@CarProtocol
public final class StrokeCap


Defines the treatment applied to the beginning and end of drawn line segments or progress bar tracks. When drawing a path with a stroke, the cap type/style dictates whether the ends are rounded off, squared, etc. This class contains the allowed types of stroke caps.

Summary

Constants

static final int

The default stroke cap style defined by the system.

static final int
ROUND = 1

Begin and end contours with a semicircle extension.

static final int
SQUARE = 2

Begin and end contours with a half square extension.

Constants

DEFAULT

Added in 1.9.0-alpha02
public static final int DEFAULT = 0

The default stroke cap style defined by the system.

ROUND

Added in 1.9.0-alpha02
public static final int ROUND = 1

Begin and end contours with a semicircle extension.

SQUARE

Added in 1.9.0-alpha02
public static final int SQUARE = 2

Begin and end contours with a half square extension.