public abstract class AbstractToolPanel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractToolPanel.ToolView |
Modifier and Type | Field and Description |
---|---|
protected static int |
ANIMATION_DURATION |
protected java.lang.Class<? extends Settings>[] |
historySettings |
protected android.view.ViewGroup |
parentView |
protected int |
toolHistoryLevel |
protected AbstractToolPanel.ToolView |
toolView |
protected float |
uiDensity |
Constructor and Description |
---|
AbstractToolPanel(StateHandler stateHandler) |
Modifier and Type | Method and Description |
---|---|
android.view.View |
attach(android.view.ViewGroup parentView) |
protected void |
callAttached(android.content.Context context,
android.view.View panelView) |
protected abstract android.animation.Animator |
createExitAnimator(android.view.View panelView) |
protected abstract android.animation.Animator |
createShowAnimator(android.view.View panelView) |
void |
detach(boolean revertChanges) |
boolean |
equals(java.lang.Object o) |
Feature |
feature() |
AssetConfig |
getConfig() |
protected int |
getHistoryLevel() |
protected java.lang.Class[] |
getHistorySettings() |
protected HistoryState |
getHistoryState() |
protected abstract int |
getLayoutResource() |
android.view.View |
getPanelView() |
StateHandler |
getStateHandler() |
int |
hashCode() |
boolean |
isAcceptable() |
boolean |
isAttached() |
boolean |
isCancelable() |
boolean |
isInited() |
boolean |
isReady() |
protected void |
onAttached(android.content.Context context,
android.view.View panelView)
Called on attached the View.
|
protected int |
onBeforeDetach(android.view.View panelView,
boolean revertChanges)
Called before the View will detached.
|
void |
onDetach() |
protected abstract void |
onDetached()
Called after View would detached.
|
void |
redoLocalState() |
void |
refresh() |
void |
revertChanges() |
protected void |
revertToInitialState() |
protected void |
saveEndState() |
protected void |
saveInitialState() |
void |
saveLocalState() |
protected void |
setupHistory() |
java.lang.String |
toString() |
void |
undoLocalState() |
void |
updateStageOverlapping(int bottomScreenPos) |
protected static final int ANIMATION_DURATION
protected android.view.ViewGroup parentView
protected AbstractToolPanel.ToolView toolView
protected float uiDensity
protected int toolHistoryLevel
protected java.lang.Class<? extends Settings>[] historySettings
public AbstractToolPanel(@NonNull StateHandler stateHandler)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@MainThread public final android.view.View attach(@NonNull android.view.ViewGroup parentView)
public void updateStageOverlapping(int bottomScreenPos)
@LayoutRes protected abstract int getLayoutResource()
@NonNull @MainThread protected abstract android.animation.Animator createShowAnimator(@NonNull android.view.View panelView)
@NonNull @MainThread protected abstract android.animation.Animator createExitAnimator(@NonNull android.view.View panelView)
@MainThread public final void detach(boolean revertChanges)
@MainThread @CallSuper protected int onBeforeDetach(@NonNull android.view.View panelView, boolean revertChanges)
public void onDetach()
public boolean isAttached()
public boolean isInited()
protected final void callAttached(android.content.Context context, @NonNull android.view.View panelView)
@CallSuper protected void onAttached(android.content.Context context, @NonNull android.view.View panelView)
context
- the view contextpanelView
- this tool panel viewpublic void refresh()
protected abstract void onDetached()
protected final void setupHistory()
public Feature feature()
public boolean isAcceptable()
public boolean isCancelable()
protected void saveInitialState()
protected void saveEndState()
protected void revertToInitialState()
public void saveLocalState()
public void redoLocalState()
public void undoLocalState()
protected int getHistoryLevel()
@Nullable protected java.lang.Class[] getHistorySettings()
@NonNull protected HistoryState getHistoryState()
@MainThread public boolean isReady()
public android.view.View getPanelView()
public StateHandler getStateHandler()
public AssetConfig getConfig()
public void revertChanges()
public java.lang.String toString()
toString
in class java.lang.Object