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 <any> |
CREATOR |
panelClass
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(Parcel in) |
Modifier and Type | Method and Description |
---|---|
View |
attachPanel(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(Parcel dest,
int flags) |
equals, getConfig, getLayout, getStateHandler, getVerticalLayout, isAttached, isReady, isSelectable, refreshPanel, revertChanges
createViewHolder, generateBindData, generateBindDataAsync, getName, getThumbnailBitmap, getThumbnailBitmap, getThumbnailResId, getThumbnailSource, getTitle, hasStaticThumbnail, isClickable, isDirty, setDirtyFlag
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTitle
createViewHolder, generateBindData, generateBindDataAsync, getName, isDirty, setDirtyFlag
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(Parcel in)
public View attachPanel(@NonNull ViewGroup parentView, @NonNull StateHandler stateHandler)
attachPanel
in class AbstractEditorTool
public void bringToFront()
public int describeContents()
describeContents
in class AbstractEditorTool
public void detachPanel(boolean revertChanges)
detachPanel
in interface ToolConfigInterface
detachPanel
in class AbstractEditorTool
public int getBrushColor()
public float getBrushHardness()
public float getBrushSize()
public void goBackwards()
public boolean isRevertible()
isRevertible
in interface ToolConfigInterface
isRevertible
in class AbstractEditorTool
public void openColorSelection(BrushEditorTool.COLOR_TYPE type, int currentColor, AbstractColorEditorTool.OnColorSelected<BrushEditorTool.COLOR_TYPE> listener)
protected void revertState()
revertState
in class AbstractEditorTool
protected void saveState()
saveState
in class AbstractEditorTool
public void setBrushColor(int brushColor)
public void setBrushHardness(float brushHardness)
public void setBrushSize(float brushSize)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class AbstractEditorTool