Stay organized with collections
Save and categorize content based on your preferences.
Cap
class Cap
Known Direct Subclasses
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.
|
|
The Cap specifies the treatment for the beginning and ending of stroked lines and paths. The default is BUTT.
Summary
Enum values |
The stroke ends with the path, and does not project beyond it.
|
The stroke projects out as a semicircle, with the center at the end of the path.
|
The stroke projects out as a square, with the center at the end of the path.
|
Enum values
BUTT
enum val BUTT : Paint.Cap
The stroke ends with the path, and does not project beyond it.
ROUND
enum val ROUND : Paint.Cap
The stroke projects out as a semicircle, with the center at the end of the path.
SQUARE
enum val SQUARE : Paint.Cap
The stroke projects out as a square, with the center at the end of the path.
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 2024-04-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-04 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-04 UTC."]]