public abstract class AbstractColorEditorTool<T extends java.lang.Enum> extends AbstractEditorTool
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractColorEditorTool.OnColorSelected<T extends java.lang.Enum> |
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
protected T |
type |
panelClass
isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
AbstractColorEditorTool(int name,
T type,
int color,
AbstractColorEditorTool.OnColorSelected<T> listener) |
protected |
AbstractColorEditorTool(Parcel in,
AbstractColorEditorTool.OnColorSelected listener) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
void |
detachPanel(boolean revertChanges) |
int |
getColor() |
java.util.List<? extends ColorConfigInterface> |
getColorList() |
abstract java.util.List<? extends ColorConfigInterface> |
getColorList(ImgLyConfig config) |
boolean |
isRevertible() |
protected void |
revertState() |
protected void |
saveState() |
void |
setColor(int color) |
void |
writeToParcel(Parcel dest,
int flags) |
attachPanel, equals, getConfig, getLayout, getStateHandler, getVerticalLayout, isAttached, isReady, isSelectable, refreshPanel, revertChanges
createViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
createViewHolder, generateBindData, generateBindDataAsync, getName, isDirty, setDirtyFlag
protected final T extends java.lang.Enum type
public AbstractColorEditorTool(@StringRes int name, T type, int color, AbstractColorEditorTool.OnColorSelected<T> listener)
protected AbstractColorEditorTool(Parcel in, AbstractColorEditorTool.OnColorSelected listener)
public int describeContents()
describeContents
in class AbstractEditorTool
public void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
detachPanel
in class AbstractEditorTool
public int getColor()
@NonNull public java.util.List<? extends ColorConfigInterface> getColorList()
@NonNull public abstract java.util.List<? extends ColorConfigInterface> getColorList(ImgLyConfig config)
public boolean isRevertible()
isRevertible
in interface ToolConfigInterface
isRevertible
in class AbstractEditorTool
protected void revertState()
revertState
in class AbstractEditorTool
protected void saveState()
saveState
in class AbstractEditorTool
public void setColor(int color)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class AbstractEditorTool