Skip to content

Most visited

Recently visited

navigation
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[]
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.