English | Site Directory

Android - An Open Handset Alliance Project

android.graphics
public static final enum

android.graphics.Paint.Align

java.lang.Object
java.lang.Enum Serializable Comparable
android.graphics.Paint.Align

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

Summary

Enum Values

Align  CENTER  The text is drawn centered horizontally on the x,y origin  
Align  LEFT  The text is drawn to the right of the x,y origin  
Align  RIGHT  The text is drawn to the left of the x,y origin  

Public Methods

      static  Align  valueOf(String name)
    final  static  Align[]  values()
Methods inherited from class java.lang.Enum
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Comparable

Details

Enum Values

public static final Align CENTER

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

public static final Align LEFT

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

public static final Align RIGHT

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

Public Methods

public static Align valueOf(String name)

public static final Align[] values()

Build m5-rc15i - 10 Jun 2008 13:54