protected static class TextOptionToolPanel.TextStickerColorOption extends TextOptionToolPanel.TextStickerOption
AbstractConfig.BindData
CREATOR
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier and Type | Method and Description |
---|---|
int |
getLayout()
Get the layout res id of the list item view.
|
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
|
int |
getThumbnailResId()
Get the static thumbnail drawable resource id if exist.
|
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
void |
setColor(int color) |
describeContents, isSelectable, writeToParcel
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getVerticalLayout, isDirty, setDirtyFlag
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
getLayout
in class TextOptionToolPanel.TextStickerOption
@Nullable public android.graphics.Bitmap getThumbnailBitmap()
AbstractConfig
getThumbnailBitmap
in class AbstractConfig
AbstractConfig.getThumbnailBitmap(int maxWidth)
public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class TextOptionToolPanel.TextStickerOption
maxWidth
- Size the drawable should be limited to.public int getThumbnailResId()
AbstractConfig
getThumbnailResId
in class TextOptionToolPanel.TextStickerOption
AbstractConfig.hasStaticThumbnail()
public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class TextOptionToolPanel.TextStickerOption
AbstractConfig.getThumbnailBitmap()
public void setColor(int color)