public abstract class AbstractEditorTool extends AbstractConfig implements AbstractConfig.ToolConfigInterface
AbstractConfig.AspectConfigInterface, AbstractConfig.BindData, AbstractConfig.ColorConfigInterface, AbstractConfig.ConfigViewHolder, AbstractConfig.FontConfigInterface<T>, AbstractConfig.FrameConfigInterface, AbstractConfig.ImageFilterInterface, AbstractConfig.StickerConfigInterface, AbstractConfig.ToolConfigInterface| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<? extends AbstractToolPanel> |
panelClass |
isDirty, NO_STATIC_THUMBNAIL_ID, ORIGINAL_THUMBNAIL_SIZE, thumbnailUri| 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) |
ImgLyConfig |
getConfig() |
int |
getLayout()
Get the layout res id of the list item view.
|
StateHandler |
getStateHandler() |
int |
getVerticalLayout()
Get the vertical layout res id of the list item view.
|
boolean |
isAttached() |
abstract boolean |
isRevertible() |
boolean |
isSelectable() |
void |
refreshPanel() |
void |
revertChanges() |
protected void |
revertState() |
protected void |
saveState() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
createViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTitlecreateViewHolder, generateBindData, generateBindDataAsync, getName, isDirty, setDirtyFlag@NonNull protected final java.lang.Class<? extends AbstractToolPanel> panelClass
public AbstractEditorTool(@StringRes
int name,
@DrawableRes
int drawableId,
@NonNull
java.lang.Class<? extends AbstractToolPanel> panelClass)
protected AbstractEditorTool(android.os.Parcel in)
public abstract boolean isRevertible()
isRevertible in interface AbstractConfig.ToolConfigInterfaceprotected void saveState()
protected void revertState()
public void refreshPanel()
refreshPanel in interface AbstractConfig.ToolConfigInterfacepublic boolean isAttached()
public boolean isSelectable()
isSelectable in interface DataSourceInterface<AbstractConfig.BindData>public android.view.View attachPanel(@NonNull
android.view.ViewGroup parentView,
@NonNull
StateHandler stateHandler)
public int getVerticalLayout()
DataSourceInterfacegetVerticalLayout in interface DataSourceInterface<AbstractConfig.BindData>getVerticalLayout in class AbstractConfig@NonNull public StateHandler getStateHandler()
getStateHandler in interface AbstractConfig.ToolConfigInterfacepublic ImgLyConfig getConfig()
public void revertChanges()
revertChanges in interface AbstractConfig.ToolConfigInterfacepublic void detachPanel(boolean revertChanges)
detachPanel in interface AbstractConfig.ToolConfigInterfacepublic int getLayout()
DataSourceInterfacegetLayout in interface DataSourceInterface<AbstractConfig.BindData>public int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class AbstractConfigpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class AbstractConfig