android.text.style
Class ReplacementSpan
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
android.text.style.ReplacementSpan
- All Implemented Interfaces:
- UpdateAppearance, UpdateLayout
- Direct Known Subclasses:
- DynamicDrawableSpan
public abstract class ReplacementSpan
- extends MetricAffectingSpan
Method Summary |
abstract void |
draw(Canvas canvas,
CharSequence text,
int start,
int end,
float x,
int top,
int y,
int bottom,
Paint paint)
|
abstract int |
getSize(Paint paint,
CharSequence text,
int start,
int end,
Paint.FontMetricsInt fm)
|
void |
updateDrawState(TextPaint ds)
|
void |
updateMeasureState(TextPaint p)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReplacementSpan
public ReplacementSpan()
getSize
public abstract int getSize(Paint paint,
CharSequence text,
int start,
int end,
Paint.FontMetricsInt fm)
draw
public abstract void draw(Canvas canvas,
CharSequence text,
int start,
int end,
float x,
int top,
int y,
int bottom,
Paint paint)
updateMeasureState
public void updateMeasureState(TextPaint p)
- Specified by:
updateMeasureState
in class MetricAffectingSpan
updateDrawState
public void updateDrawState(TextPaint ds)
- Specified by:
updateDrawState
in class CharacterStyle
Copyright © 2008-2012. All Rights Reserved.