public static class AdjustmentToolPanel.HistoryStateOption extends AbstractConfig
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
protected AdjustmentToolPanel.OPTION |
option |
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Constructor and Description |
---|
HistoryStateOption(AdjustmentToolPanel.OPTION option,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
int |
getLayout()
Get the layout res id of the list item view.
|
static int |
getNameRes(AdjustmentToolPanel.OPTION option) |
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.
|
boolean |
isSelectable() |
void |
setEnabled(boolean enabled) |
createViewHolder, describeContents, generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailSource, getTitle, getVerticalLayout, isClickable, isDirty, setDirtyFlag, writeToParcel
@NonNull protected final AdjustmentToolPanel.OPTION option
public HistoryStateOption(@NonNull AdjustmentToolPanel.OPTION option, boolean enabled)
public int getLayout()
DataSourceInterface
public static int getNameRes(@NonNull AdjustmentToolPanel.OPTION option)
@Nullable public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractConfig
getThumbnailBitmap
in class AbstractConfig
maxWidth
- Size the drawable should be limited to.public int getThumbnailResId()
AbstractConfig
getThumbnailResId
in class AbstractConfig
AbstractConfig.hasStaticThumbnail()
public boolean hasStaticThumbnail()
AbstractConfig
hasStaticThumbnail
in class AbstractConfig
AbstractConfig.getThumbnailBitmap()
public boolean isSelectable()
public void setEnabled(boolean enabled)