Paint.Cap
public
static
final
enum
Paint.Cap
| android.graphics.Paint.Cap |
The Cap specifies the treatment for the beginning and ending of stroked lines and paths. The default is BUTT.
Summary
Enum values | |
|---|---|
Paint.Cap |
BUTT
The stroke ends with the path, and does not project beyond it. |
Paint.Cap |
ROUND
The stroke projects out as a semicircle, with the center at the end of the path. |
Paint.Cap |
SQUARE
The stroke projects out as a square, with the center at the end of the path. |
Public methods | |
|---|---|
static
Paint.Cap
|
valueOf(String name)
|
static
final
Cap[]
|
values()
|
Enum values
BUTT
public static final Paint.Cap BUTT
The stroke ends with the path, and does not project beyond it.
ROUND
public static final Paint.Cap ROUND
The stroke projects out as a semicircle, with the center at the end of the path.
SQUARE
public static final Paint.Cap SQUARE
The stroke projects out as a square, with the center at the end of the path.
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-04-12 UTC.