Build 1.0_r1(from source)

android.text.style
Class MetricAffectingSpan.Passthrough

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.MetricAffectingSpan
          extended by android.text.style.MetricAffectingSpan.Passthrough
All Implemented Interfaces:
UpdateLayout
Enclosing class:
MetricAffectingSpan

static class MetricAffectingSpan.Passthrough
extends MetricAffectingSpan

A Passthrough MetricAffectingSpan is one that passes updateDrawState(android.text.TextPaint) and 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.text.style.MetricAffectingSpan
MetricAffectingSpan.Passthrough
 
Constructor Summary
MetricAffectingSpan.Passthrough(MetricAffectingSpan cs)
          Creates a new Passthrough of the specfied MetricAffectingSpan.
 
Method Summary
 MetricAffectingSpan getUnderlying()
          Returns the MetricAffectingSpan underlying this one, or the one underlying it if it too is a Passthrough.
 void updateDrawState(TextPaint tp)
          Passes updateDrawState through to the underlying MetricAffectingSpan.
 void updateMeasureState(TextPaint tp)
          Passes updateMeasureState through to the underlying MetricAffectingSpan.
 
Methods inherited from class android.text.style.CharacterStyle
wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricAffectingSpan.Passthrough

public MetricAffectingSpan.Passthrough(MetricAffectingSpan cs)
Creates a new Passthrough of the specfied MetricAffectingSpan.

Method Detail

updateDrawState

public void updateDrawState(TextPaint tp)
Passes updateDrawState through to the underlying MetricAffectingSpan.

Specified by:
updateDrawState in class CharacterStyle

updateMeasureState

public void updateMeasureState(TextPaint tp)
Passes updateMeasureState through to the underlying MetricAffectingSpan.

Specified by:
updateMeasureState in class MetricAffectingSpan

getUnderlying

public MetricAffectingSpan getUnderlying()
Returns the MetricAffectingSpan underlying this one, or the one underlying it if it too is a Passthrough.

Overrides:
getUnderlying in class MetricAffectingSpan

Build 1.0_r1(from source)

Please submit a feedback, bug or feature