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:
UpdateAppearance, UpdateLayout
Direct Known Subclasses:
DynamicDrawableSpan

public abstract class ReplacementSpan
extends MetricAffectingSpan


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)
           
 void updateMeasureState(TextPaint p)
           
 
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)
Specified by:
updateMeasureState in class MetricAffectingSpan

updateDrawState

public void updateDrawState(TextPaint ds)
Specified by:
updateDrawState in class CharacterStyle


Copyright © 2008-2012. All Rights Reserved.