|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.graphics.drawable.Drawable
com.nostra13.universalimageloader.core.display.RoundedBitmapDisplayer.RoundedDrawable
public static class RoundedBitmapDisplayer.RoundedDrawable
Nested Class Summary |
---|
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable |
---|
android.graphics.drawable.Drawable.Callback, android.graphics.drawable.Drawable.ConstantState |
Field Summary | |
---|---|
protected android.graphics.BitmapShader |
bitmapShader
|
protected float |
cornerRadius
|
protected int |
margin
|
protected android.graphics.RectF |
mBitmapRect
|
protected android.graphics.RectF |
mRect
|
protected android.graphics.Paint |
paint
|
Constructor Summary | |
---|---|
RoundedBitmapDisplayer.RoundedDrawable(android.graphics.Bitmap bitmap,
int cornerRadius,
int margin)
|
Method Summary | |
---|---|
void |
draw(android.graphics.Canvas canvas)
|
int |
getOpacity()
|
protected void |
onBoundsChange(android.graphics.Rect bounds)
|
void |
setAlpha(int alpha)
|
void |
setColorFilter(android.graphics.ColorFilter cf)
|
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, 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 |
Field Detail |
---|
protected final float cornerRadius
protected final int margin
protected final android.graphics.RectF mRect
protected final android.graphics.RectF mBitmapRect
protected final android.graphics.BitmapShader bitmapShader
protected final android.graphics.Paint paint
Constructor Detail |
---|
public RoundedBitmapDisplayer.RoundedDrawable(android.graphics.Bitmap bitmap, int cornerRadius, int margin)
Method Detail |
---|
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange
in class android.graphics.drawable.Drawable
public void draw(android.graphics.Canvas canvas)
draw
in class android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
in class android.graphics.drawable.Drawable
public void setAlpha(int alpha)
setAlpha
in class android.graphics.drawable.Drawable
public void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter
in class android.graphics.drawable.Drawable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |