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 |
historySettings, panelClass, toolHistoryLevel
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
AbstractColorEditorTool(int name,
T type,
int color,
AbstractColorEditorTool.OnColorSelected<T> listener) |
protected |
AbstractColorEditorTool(android.os.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(PESDKConfig config) |
boolean |
isAcceptable() |
boolean |
isCancelable() |
void |
redoLocalState() |
protected void |
revertToInitialState() |
protected void |
saveInitialState() |
void |
saveLocalState() |
void |
setColor(int color) |
void |
undoLocalState() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
attachPanel, equals, feature, getConfig, getHistoryLevel, getHistorySettings, getHistoryState, getLayout, getPanelView, getStateHandler, getVerticalLayout, isAttached, isReady, isRevertible, isSelectable, refreshPanel, revertChanges, saveEndState, setupHistory
createViewHolder, generateBindData, generateBindDataAsync, getId, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
createViewHolder, generateBindData, generateBindDataAsync, getId, 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(android.os.Parcel in, AbstractColorEditorTool.OnColorSelected listener)
public int describeContents()
describeContents
in interface android.os.Parcelable
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(PESDKConfig config)
public boolean isAcceptable()
isAcceptable
in interface ToolConfigInterface
isAcceptable
in class AbstractEditorTool
public boolean isCancelable()
isCancelable
in interface ToolConfigInterface
isCancelable
in class AbstractEditorTool
public void redoLocalState()
redoLocalState
in class AbstractEditorTool
protected void revertToInitialState()
revertToInitialState
in class AbstractEditorTool
protected void saveInitialState()
saveInitialState
in class AbstractEditorTool
public void saveLocalState()
saveLocalState
in class AbstractEditorTool
public void setColor(int color)
public void undoLocalState()
undoLocalState
in class AbstractEditorTool
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractEditorTool