Android
android.text.style
public abstract class

android.text.style.CharacterStyle

java.lang.Object
android.text.style.CharacterStyle

The classes that affect character-level text formatting extend this class. Most also extend MetricAffectingSpan.

Known Direct Subclasses
Known Indirect Subclasses

Summary

Public Constructors

            CharacterStyle()

Public Methods

          CharacterStyle  getUnderlying()
Returns "this" for most CharacterStyles, but for CharacterStyles that were generated by wrap(CharacterStyle), returns the underlying CharacterStyle.
abstract          void  updateDrawState(TextPaint tp)
      static    CharacterStyle  wrap(CharacterStyle cs)
A given CharacterStyle can only applied to a single region of a given Spanned.
Methods inherited from class java.lang.Object

Details

Public Constructors

public CharacterStyle()

Public Methods

public CharacterStyle getUnderlying()

Returns "this" for most CharacterStyles, but for CharacterStyles that were generated by wrap(CharacterStyle), returns the underlying CharacterStyle.

public abstract void updateDrawState(TextPaint tp)

public static CharacterStyle wrap(CharacterStyle cs)

A given CharacterStyle can only applied to a single region of a given Spanned. If you need to attach the same CharacterStyle to multiple regions, you can use this method to wrap it with a new object that will have the same effect but be a distinct object so that it can also be attached without conflict.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56