public class BrushEditorTool extends AbstractEditorTool
| Modifier and Type | Class and Description |
|---|---|
static class |
BrushEditorTool.COLOR_TYPE |
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 |
|---|---|
static android.os.Parcelable.Creator<BrushEditorTool> |
CREATOR |
panelClassisDirty, NO_STATIC_THUMBNAIL_ID, ORIGINAL_THUMBNAIL_SIZE, thumbnailUri| 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 |
|---|---|
android.view.View |
attachPanel(android.view.ViewGroup parentView,
StateHandler stateHandler) |
void |
bringToFront() |
int |
describeContents() |
void |
detachPanel(boolean revertChanges) |
int |
getBrushColor() |
float |
getBrushHardness() |
float |
getBrushSize() |
void |
goBackwards() |
boolean |
isRevertible() |
void |
openColorSelection(BrushEditorTool.COLOR_TYPE type,
int currentColor,
AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE> listener) |
protected void |
revertState() |
protected void |
saveState() |
void |
setBrushColor(int brushColor) |
void |
setBrushHardness(float brushHardness) |
void |
setBrushSize(float brushSize) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getConfig, getLayout, getStateHandler, getVerticalLayout, isAttached, isSelectable, refreshPanel, revertChangescreateViewHolder, 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, setDirtyFlagpublic 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)
public boolean isRevertible()
isRevertible in interface AbstractConfig.ToolConfigInterfaceisRevertible in class AbstractEditorToolprotected void saveState()
saveState in class AbstractEditorToolprotected void revertState()
revertState in class AbstractEditorToolpublic int getBrushColor()
public void setBrushColor(int brushColor)
public float getBrushSize()
public void setBrushSize(float brushSize)
public float getBrushHardness()
public void setBrushHardness(float brushHardness)
public void openColorSelection(BrushEditorTool.COLOR_TYPE type, int currentColor, AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE> listener)
public void goBackwards()
public void bringToFront()
public android.view.View attachPanel(@NonNull
android.view.ViewGroup parentView,
@NonNull
StateHandler stateHandler)
attachPanel in class AbstractEditorToolpublic void detachPanel(boolean revertChanges)
detachPanel in interface AbstractConfig.ToolConfigInterfacedetachPanel in class AbstractEditorToolpublic int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class AbstractEditorToolpublic void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class AbstractEditorTool