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

ScaleXSpan

public class ScaleXSpan extends MetricAffectingSpan implements android.text.ParcelableSpan

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

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

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

        return 0;
    
public floatgetScaleX()

		return mProportion;
	
public intgetSpanTypeId()

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

		ds.setTextScaleX(ds.getTextScaleX() * mProportion);
	
public voidupdateMeasureState(android.text.TextPaint ds)

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

        dest.writeFloat(mProportion);