android.text.style
Class MetricAffectingSpan.Passthrough
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetricAffectingSpan.Passthrough
public MetricAffectingSpan.Passthrough(MetricAffectingSpan cs)
- Creates a new Passthrough of the specfied MetricAffectingSpan.
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
Please submit a feedback, bug or feature