public class BrushColorOption extends BrushOption
CREATOR
id
FLAVOR_OPTION_LIST, FLAVOR_OPTION_LIST_FOLDER_SUBITEM, FLAVOR_QUICK_OPTION_LIST, FLAVOR_QUICK_OPTION_LIST_FOLDER_SUBITEM, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
BrushColorOption(int id,
int color) |
Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
getThumbnailBitmap()
Return Thumbnail in full size.
|
android.graphics.Bitmap |
getThumbnailBitmap(int maxWidth)
Return the Thumbnail, do not call in Main Thread and use #getThumbnailResId() if #hasStaticThumbnail
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
boolean |
isSelectable() |
void |
setColor(int color) |
describeContents, getLayout
equals, getId, getViewHolderClass, writeToParcel
getLayout, getName, getThumbnailResId, getThumbnailSource, isClickable, isDirty, setDirtyFlag, setName
public boolean hasStaticThumbnail()
AbstractItem
hasStaticThumbnail
in class BrushOption
AbstractItem.getThumbnailBitmap()
public boolean isSelectable()
isSelectable
in interface DataSourceInterface
isSelectable
in class BrushOption
public void setColor(int color)
@WorkerThread public android.graphics.Bitmap getThumbnailBitmap()
AbstractItem
getThumbnailBitmap
in class AbstractItem
AbstractItem.getThumbnailBitmap(int maxWidth)
@WorkerThread public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractItem
getThumbnailBitmap
in class AbstractItem
maxWidth
- Size the drawable should be limited to.