Most visited

Recently visited

Added in API level 1

Paint.Align

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

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


对齐指定drawText如何将文本相对于[x,y]坐标对齐。 缺省值是LEFT。

Summary

Enum values

Paint.Align  CENTER

文本在x,y原点上水平居中绘制

Paint.Align  LEFT

文本被绘制在x,y原点的右侧

Paint.Align  RIGHT

文本被绘制在x,y原点的左侧

Public methods

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

Inherited methods

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

Enum values

CENTER

Added in API level 1
Paint.Align CENTER

文本在x,y原点上水平居中绘制

LEFT

Added in API level 1
Paint.Align LEFT

文本被绘制在x,y原点的右侧

RIGHT

Added in API level 1
Paint.Align RIGHT

文本被绘制在x,y原点的左侧

Public methods

valueOf

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

Parameters
name String
Returns
Paint.Align

values

Added in API level 1
Align[] values ()

Returns
Align[]

Hooray!