public class ColorPipetteItem extends ColorItem
Modifier and Type | Class and Description |
---|---|
static class |
ColorPipetteItem.ColorPickerAsset |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ColorPipetteItem> |
CREATOR |
FLAVOR_OPTION_LIST, FLAVOR_OPTION_LIST_FOLDER_SUBITEM, FLAVOR_QUICK_OPTION_LIST, FLAVOR_QUICK_OPTION_LIST_FOLDER_SUBITEM, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
ColorPipetteItem(int name) |
protected |
ColorPipetteItem(android.os.Parcel in) |
|
ColorPipetteItem(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
ColorAsset |
getData() |
int |
getLayout()
Get the default layout res id of the list item view.
|
float |
getPipettePositionX() |
float |
getPipettePositionY() |
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
|
java.lang.Class<? extends DataSourceListAdapter.DataSourceViewHolder> |
getViewHolderClass()
Get the class of a ViewHolder to Display in List
|
int |
hashCode() |
boolean |
hasLastPipettePosition() |
boolean |
hasStaticThumbnail()
Check if it has a static thumbnail drawable.
|
boolean |
isSelectable() |
void |
setColor(int value) |
void |
setPipettePositionX(float pipettePositionX) |
void |
setPipettePositionY(float pipettePositionY) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getLayout, getName, getThumbnailResId, getThumbnailSource, isClickable, isDirty, setDirtyFlag, setName
public static final android.os.Parcelable.Creator<ColorPipetteItem> CREATOR
public ColorPipetteItem(java.lang.String name)
public ColorPipetteItem(@StringRes int name)
protected ColorPipetteItem(android.os.Parcel in)
public float getPipettePositionX()
public float getPipettePositionY()
public boolean hasLastPipettePosition()
public void setPipettePositionX(float pipettePositionX)
public void setPipettePositionY(float pipettePositionY)
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface
getLayout
in class ColorItem
public boolean hasStaticThumbnail()
AbstractItem
hasStaticThumbnail
in class ColorItem
AbstractItem.getThumbnailBitmap()
public android.graphics.Bitmap getThumbnailBitmap()
AbstractItem
getThumbnailBitmap
in class ColorItem
AbstractItem.getThumbnailBitmap(int maxWidth)
public android.graphics.Bitmap getThumbnailBitmap(int maxWidth)
AbstractItem
getThumbnailBitmap
in class ColorItem
maxWidth
- Size the drawable should be limited to.public ColorAsset getData()
public void setColor(int value)
@NonNull public java.lang.Class<? extends DataSourceListAdapter.DataSourceViewHolder> getViewHolderClass()
DataSourceInterface
getViewHolderClass
in interface DataSourceInterface
getViewHolderClass
in class ColorItem
public boolean isSelectable()
isSelectable
in interface DataSourceInterface
isSelectable
in class ColorItem
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class ColorItem
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class ColorItem