public abstract class AbstractEditorTool extends AbstractConfig implements ToolConfigInterface
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<? extends Settings>[] |
historySettings |
protected java.lang.Class<? extends AbstractToolPanel> |
panelClass |
protected int |
toolHistoryLevel |
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
AbstractEditorTool(int name,
int drawableId,
java.lang.Class<? extends AbstractToolPanel> panelClass) |
protected |
AbstractEditorTool(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
android.view.View |
attachPanel(android.view.ViewGroup parentView,
StateHandler stateHandler) |
int |
describeContents() |
void |
detachPanel(boolean revertChanges) |
boolean |
equals(java.lang.Object o) |
ly.img.android.Feature |
feature() |
PESDKConfig |
getConfig() |
protected int |
getHistoryLevel() |
protected java.lang.Class<? extends Settings>[] |
getHistorySettings() |
protected HistoryState |
getHistoryState() |
int |
getLayout()
Get the layout res id of the list item view.
|
android.view.View |
getPanelView() |
StateHandler |
getStateHandler() |
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
boolean |
isAcceptable() |
boolean |
isAttached() |
boolean |
isCancelable() |
boolean |
isReady() |
protected boolean |
isRevertible()
Deprecated.
|
boolean |
isSelectable() |
void |
redoLocalState() |
void |
refreshPanel() |
void |
revertChanges() |
protected void |
revertToInitialState() |
protected void |
saveEndState() |
protected void |
saveInitialState() |
void |
saveLocalState() |
protected void |
setupHistory() |
void |
undoLocalState() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
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 java.lang.Class<? extends Settings>[] historySettings
@NonNull protected final java.lang.Class<? extends AbstractToolPanel> panelClass
protected int toolHistoryLevel
@MainThread public AbstractEditorTool(@StringRes int name, @DrawableRes int drawableId, @NonNull java.lang.Class<? extends AbstractToolPanel> panelClass)
protected AbstractEditorTool(android.os.Parcel in)
@MainThread public android.view.View attachPanel(@NonNull android.view.ViewGroup parentView, @NonNull StateHandler stateHandler)
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class AbstractConfig
@MainThread public void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public ly.img.android.Feature feature()
public PESDKConfig getConfig()
protected int getHistoryLevel()
@Nullable protected java.lang.Class<? extends Settings>[] getHistorySettings()
@Nullable protected HistoryState getHistoryState()
public int getLayout()
DataSourceInterface
getLayout
in interface DataSourceInterface<AbstractConfig.BindData>
public android.view.View getPanelView()
public StateHandler getStateHandler()
getStateHandler
in interface ToolConfigInterface
public int getVerticalLayout()
DataSourceInterface
getVerticalLayout
in interface DataSourceInterface<AbstractConfig.BindData>
getVerticalLayout
in class AbstractConfig
public boolean isAcceptable()
isAcceptable
in interface ToolConfigInterface
@MainThread public boolean isAttached()
public boolean isCancelable()
isCancelable
in interface ToolConfigInterface
@MainThread public boolean isReady()
@Deprecated protected final boolean isRevertible()
@MainThread public boolean isSelectable()
isSelectable
in interface DataSourceInterface<AbstractConfig.BindData>
public void redoLocalState()
@MainThread public void refreshPanel()
refreshPanel
in interface ToolConfigInterface
public void revertChanges()
revertChanges
in interface ToolConfigInterface
protected void revertToInitialState()
protected void saveEndState()
protected void saveInitialState()
public void saveLocalState()
protected final void setupHistory()
public void undoLocalState()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractConfig