android.text.style
Class ReplacementSpan
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
android.text.style.ReplacementSpan
- All Implemented Interfaces:
- 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)
This method does nothing, since ReplacementSpans are drawn
explicitly instead of affecting Paint properties. |
void |
updateMeasureState(TextPaint p)
This method does nothing, since ReplacementSpans are measured
explicitly instead of affecting Paint properties. |
| 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)
- This method does nothing, since ReplacementSpans are measured
explicitly instead of affecting Paint properties.
- Specified by:
updateMeasureState in class MetricAffectingSpan
updateDrawState
public void updateDrawState(TextPaint ds)
- This method does nothing, since ReplacementSpans are drawn
explicitly instead of affecting Paint properties.
- Specified by:
updateDrawState in class CharacterStyle
Please submit a feedback, bug or feature