com.actionbarsherlock.internal.widget
Class IcsColorDrawable

java.lang.Object
  extended by android.graphics.drawable.Drawable
      extended by com.actionbarsherlock.internal.widget.IcsColorDrawable

public class IcsColorDrawable
extends android.graphics.drawable.Drawable

A version of ColorDrawable that respects bounds.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable
android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.ConstantState
 
Constructor Summary
IcsColorDrawable(android.graphics.drawable.ColorDrawable drawable)
           
IcsColorDrawable(int color)
           
 
Method Summary
 void draw(android.graphics.Canvas canvas)
           
 int getOpacity()
           
 void setAlpha(int alpha)
           
 void setColorFilter(android.graphics.ColorFilter colorFilter)
           
 
Methods inherited from class android.graphics.drawable.Drawable
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IcsColorDrawable

public IcsColorDrawable(android.graphics.drawable.ColorDrawable drawable)

IcsColorDrawable

public IcsColorDrawable(int color)
Method Detail

draw

public void draw(android.graphics.Canvas canvas)
Specified by:
draw in class android.graphics.drawable.Drawable

setAlpha

public void setAlpha(int alpha)
Specified by:
setAlpha in class android.graphics.drawable.Drawable

setColorFilter

public void setColorFilter(android.graphics.ColorFilter colorFilter)
Specified by:
setColorFilter in class android.graphics.drawable.Drawable

getOpacity

public int getOpacity()
Specified by:
getOpacity in class android.graphics.drawable.Drawable


Copyright © 2012-2013. All Rights Reserved.