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


Align specifies how drawText aligns its text relative to the [x,y] coordinates. The default is LEFT.

Summary

Enum values

Paint.Align  CENTER

The text is drawn centered horizontally on the x,y origin  

Paint.Align  LEFT

The text is drawn to the right of the x,y origin  

Paint.Align  RIGHT

The text is drawn to the left of the x,y origin  

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

The text is drawn centered horizontally on the x,y origin

LEFT

Added in API level 1
Paint.Align LEFT

The text is drawn to the right of the x,y origin

RIGHT

Added in API level 1
Paint.Align RIGHT

The text is drawn to the left of the x,y origin

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!