Build 1.0_r1(from source)

android.text.style
Class ReplacementSpan

java.lang.Object
  extended by android.text.style.CharacterStyle
      extended by android.text.style.MetricAffectingSpan
          extended by android.text.style.ReplacementSpan
All Implemented Interfaces:
UpdateLayout
Direct Known Subclasses:
DynamicDrawableSpan

public abstract class ReplacementSpan
extends MetricAffectingSpan


Nested Class Summary
 
Nested classes/interfaces inherited from class android.text.style.MetricAffectingSpan
MetricAffectingSpan.Passthrough
 
Constructor Summary
ReplacementSpan()
           
 
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 android.text.style.MetricAffectingSpan
getUnderlying
 
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

ReplacementSpan

public ReplacementSpan()
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature