to top
Android APIs
public abstract class

ReplacementSpan

extends MetricAffectingSpan
java.lang.Object
   ↳ android.text.style.CharacterStyle
     ↳ android.text.style.MetricAffectingSpan
       ↳ android.text.style.ReplacementSpan
Known Direct Subclasses
Known Indirect Subclasses

Summary

Public Constructors

? Examples
ReplacementSpan()
Public Methods

? Examples
abstract void draw( Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)

? Examples
abstract int getSize( Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)

? Examples
void updateDrawState( TextPaint ds)
This method does nothing, since ReplacementSpans are drawn explicitly instead of affecting Paint properties.

? Examples
void updateMeasureState( TextPaint p)
This method does nothing, since ReplacementSpans are measured explicitly instead of affecting Paint properties.
[Expand]
Inherited Methods
From class android.text.style.MetricAffectingSpan
From class android.text.style.CharacterStyle
From class java.lang.Object

Public Constructors

public ReplacementSpan ()

Added in API level 1

Public Methods

public abstract void draw (Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint)

Added in API level 1

public abstract int getSize (Paint paint, CharSequence text, int start, int end, Paint.FontMetricsInt fm)

Added in API level 1

public void updateDrawState (TextPaint ds)

Added in API level 1

This method does nothing, since ReplacementSpans are drawn explicitly instead of affecting Paint properties.

public void updateMeasureState (TextPaint p)

Added in API level 1

This method does nothing, since ReplacementSpans are measured explicitly instead of affecting Paint properties.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.