FileDocCategorySizeDatePackage
ProxyDrawable.javaAPI DocAndroid 1.5 API2544Wed May 06 22:41:08 BST 2009com.example.android.apis.graphics

ProxyDrawable

public class ProxyDrawable extends android.graphics.drawable.Drawable

Fields Summary
private android.graphics.drawable.Drawable
mProxy
private boolean
mMutated
Constructors Summary
public ProxyDrawable(android.graphics.drawable.Drawable target)

        mProxy = target;
    
Methods Summary
public voiddraw(android.graphics.Canvas canvas)

        if (mProxy != null) {
            mProxy.draw(canvas);
        }
    
public intgetIntrinsicHeight()

        return mProxy != null ? mProxy.getIntrinsicHeight() : -1;
    
public intgetIntrinsicWidth()

        return mProxy != null ? mProxy.getIntrinsicWidth() : -1;
    
public intgetOpacity()

        return mProxy != null ? mProxy.getOpacity() : PixelFormat.TRANSPARENT;
    
public android.graphics.drawable.DrawablegetProxy()

        return mProxy;
    
public android.graphics.drawable.Drawablemutate()

        if (mProxy != null && !mMutated && super.mutate() == this) {
            mProxy.mutate();
            mMutated = true;
        }
        return this;
    
public voidsetAlpha(int alpha)

        if (mProxy != null) {
            mProxy.setAlpha(alpha);
        }
    
public voidsetColorFilter(android.graphics.ColorFilter colorFilter)

        if (mProxy != null) {
            mProxy.setColorFilter(colorFilter);
        }
    
public voidsetDither(boolean dither)

        if (mProxy != null) {
            mProxy.setDither(dither);
        }
    
public voidsetFilterBitmap(boolean filter)

        if (mProxy != null) {
            mProxy.setFilterBitmap(filter);
        }
    
public voidsetProxy(android.graphics.drawable.Drawable proxy)

        if (proxy != this) {
            mProxy = proxy;
        }