to top
Android APIs
public class

TextPaint

extends Paint
java.lang.Object
   ↳ android.graphics.Paint
     ↳ android.text.TextPaint

Class Overview

TextPaint is an extension of Paint that leaves room for some extra data used during text measuring and drawing.

Summary

[Expand]
Inherited Constants
From class android.graphics.Paint
Fields
public int baselineShift
public int bgColor
public float density
public int[] drawableState
public int linkColor
Public Constructors

? Examples
TextPaint()

? Examples
TextPaint(int flags)

? Examples
TextPaint( Paint p)
Public Methods

? Examples
void set( TextPaint tp)
Copy the fields from tp into this TextPaint, including the fields inherited from Paint.
[Expand]
Inherited Methods
From class android.graphics.Paint
From class java.lang.Object

Fields

public int baselineShift

Added in API level 1

public int bgColor

Added in API level 1

public float density

Added in API level 5

public int[] drawableState

Added in API level 1

public int linkColor

Added in API level 1

Public Constructors

public TextPaint ()

Added in API level 1

public TextPaint (int flags)

Added in API level 1

public TextPaint (Paint p)

Added in API level 1

Public Methods

public void set (TextPaint tp)

Added in API level 1

Copy the fields from tp into this TextPaint, including the fields inherited from Paint.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.