Most visited

Recently visited

Added in API level 1

Paint.Cap

public static final enum Paint.Cap
extends Enum<Paint.Cap>

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


Cap规定了描边线和路径的开始和结束的处理。 默认值是BUTT。

Summary

Enum values

Paint.Cap  BUTT

笔画以路径结束,并且不会超出它。

Paint.Cap  ROUND

笔画突出为半圆形,中心位于路径的尽头。

Paint.Cap  SQUARE

笔画突出为方形,中心位于路径的尽头。

Public methods

static Paint.Cap valueOf(String name)
static final Cap[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

BUTT

Added in API level 1
Paint.Cap BUTT

笔画以路径结束,并且不会超出它。

ROUND

Added in API level 1
Paint.Cap ROUND

笔画突出为半圆形,中心位于路径的尽头。

SQUARE

Added in API level 1
Paint.Cap SQUARE

笔画突出为方形,中心位于路径的尽头。

Public methods

valueOf

Added in API level 1
Paint.Cap valueOf (String name)

Parameters
name String
Returns
Paint.Cap

values

Added in API level 1
Cap[] values ()

Returns
Cap[]

Hooray!