Build 1.0_r1(from source)

android.text.style
Class MetricAffectingSpan

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.MetricAffectingSpan
All Implemented Interfaces:
UpdateLayout
Direct Known Subclasses:
AbsoluteSizeSpan, MetricAffectingSpan.Passthrough, RelativeSizeSpan, ReplacementSpan, ScaleXSpan, StyleSpan, SubscriptSpan, SuperscriptSpan, TextAppearanceSpan, TypefaceSpan

public abstract class MetricAffectingSpan
extends CharacterStyle
implements UpdateLayout

The classes that affect character-level text formatting in a way that changes the width or height of characters extend this class.


Nested Class Summary
(package private) static class MetricAffectingSpan.Passthrough
          A Passthrough MetricAffectingSpan is one that passes MetricAffectingSpan.Passthrough.updateDrawState(android.text.TextPaint) and MetricAffectingSpan.Passthrough.updateMeasureState(android.text.TextPaint) calls through to the specified MetricAffectingSpan while still being a distinct object, and is therefore able to be attached to the same Spannable to which the specified MetricAffectingSpan is already attached.
 
Constructor Summary
MetricAffectingSpan()
           
 
Method Summary
 MetricAffectingSpan getUnderlying()
          Returns "this" for most MetricAffectingSpans, but for MetricAffectingSpans that were generated by CharacterStyle.wrap(android.text.style.CharacterStyle), returns the underlying MetricAffectingSpan.
abstract  void updateMeasureState(TextPaint p)
           
 
Methods inherited from class android.text.style.CharacterStyle
updateDrawState, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricAffectingSpan

public MetricAffectingSpan()
Method Detail

updateMeasureState

public abstract void updateMeasureState(TextPaint p)

getUnderlying

public MetricAffectingSpan getUnderlying()
Returns "this" for most MetricAffectingSpans, but for MetricAffectingSpans that were generated by CharacterStyle.wrap(android.text.style.CharacterStyle), returns the underlying MetricAffectingSpan.

Overrides:
getUnderlying in class CharacterStyle

Build 1.0_r1(from source)

Please submit a feedback, bug or feature