Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final enum

Paint.Cap

extends Enum <E extends  Enum <E>>
java.lang.Object
   ↳ java.lang.Enum <E extends  java.lang.Enum <E>>
     ↳ android.graphics.Paint.Cap

Class Overview

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)
final static Cap[] values ()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Paint.Cap BUTT

Added in API level 1

The stroke ends with the path, and does not project beyond it.

public static final Paint.Cap ROUND

Added in API level 1

The stroke projects out as a semicircle, with the center at the end of the path.

public static final Paint.Cap SQUARE

Added in API level 1

The stroke projects out as a square, with the center at the end of the path.

Public Methods

public static Paint.Cap valueOf ( String name)

Added in API level 1

public static final Cap[] values ()

Added in API level 1