FileDocCategorySizeDatePackage
RelativeSizeSpan.javaAPI DocAndroid 1.5 API1599Wed May 06 22:41:56 BST 2009android.text.style

RelativeSizeSpan

public class RelativeSizeSpan extends MetricAffectingSpan implements android.text.ParcelableSpan

Fields Summary
private final float
mProportion
Constructors Summary
public RelativeSizeSpan(float proportion)

		mProportion = proportion;
	
public RelativeSizeSpan(android.os.Parcel src)

        mProportion = src.readFloat();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public floatgetSizeChange()

		return mProportion;
	
public intgetSpanTypeId()

        return TextUtils.RELATIVE_SIZE_SPAN;
    
public voidupdateDrawState(android.text.TextPaint ds)

		ds.setTextSize(ds.getTextSize() * mProportion);
	
public voidupdateMeasureState(android.text.TextPaint ds)

		ds.setTextSize(ds.getTextSize() * mProportion);
	
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeFloat(mProportion);