public class BrushEditorTool extends AbstractEditorTool
Modifier and Type | Class and Description |
---|---|
static class |
BrushEditorTool.COLOR_TYPE |
AbstractConfig.BindData
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<BrushEditorTool> |
CREATOR |
historySettings, panelClass, toolHistoryLevel
id, isDirty, ORIGINAL_THUMBNAIL_SIZE
Modifier | Constructor and Description |
---|---|
|
BrushEditorTool(int name,
int drawableId) |
|
BrushEditorTool(int name,
int drawableId,
java.lang.Class<? extends AbstractToolPanel> panelClass) |
protected |
BrushEditorTool(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterMotionComplete() |
android.view.View |
attachPanel(android.view.ViewGroup parentView,
StateHandler stateHandler) |
void |
bringToFront() |
int |
describeContents() |
void |
detachPanel(boolean revertChanges) |
ly.img.android.Feature |
feature() |
int |
getBrushColor() |
float |
getBrushHardness() |
float |
getBrushSize() |
protected int |
getHistoryLevel() |
protected java.lang.Class<? extends Settings>[] |
getHistorySettings() |
void |
goBackwards() |
void |
openColorSelection(BrushEditorTool.COLOR_TYPE type,
int currentColor,
AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE> listener) |
void |
setBrushColor(int brushColor) |
void |
setBrushHardness(float brushHardness) |
void |
setBrushSize(float brushSize) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
equals, getConfig, getHistoryState, getLayout, getPanelView, getStateHandler, getVerticalLayout, isAcceptable, isAttached, isCancelable, isReady, isRevertible, isSelectable, redoLocalState, refreshPanel, revertChanges, revertToInitialState, saveEndState, saveInitialState, saveLocalState, setupHistory, undoLocalState
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
public static final android.os.Parcelable.Creator<BrushEditorTool> CREATOR
public BrushEditorTool(@StringRes int name, @DrawableRes int drawableId)
public BrushEditorTool(@StringRes int name, @DrawableRes int drawableId, @NonNull java.lang.Class<? extends AbstractToolPanel> panelClass)
protected BrushEditorTool(android.os.Parcel in)
protected void afterMotionComplete()
public android.view.View attachPanel(@NonNull android.view.ViewGroup parentView, @NonNull StateHandler stateHandler)
attachPanel
in class AbstractEditorTool
public void bringToFront()
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 ly.img.android.Feature feature()
feature
in class AbstractEditorTool
public int getBrushColor()
public float getBrushHardness()
public float getBrushSize()
protected int getHistoryLevel()
getHistoryLevel
in class AbstractEditorTool
@NonNull protected java.lang.Class<? extends Settings>[] getHistorySettings()
getHistorySettings
in class AbstractEditorTool
public void goBackwards()
public void openColorSelection(BrushEditorTool.COLOR_TYPE type, int currentColor, AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE> listener)
public void setBrushColor(int brushColor)
public void setBrushHardness(float brushHardness)
public void setBrushSize(float brushSize)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class AbstractEditorTool