public class BrushLayerSettings extends Settings<BrushLayerSettings.Event> implements LayerListSettings.LayerSettings
Modifier and Type | Class and Description |
---|---|
static class |
BrushLayerSettings.Event |
Settings.RevertibleField
StateObservable.StateUnbindedExeption
Observable.OnPropertyChangedCallback
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED, STATE_REVERTED_EVENT
STATE_INVALID_EVENT
Modifier | Constructor and Description |
---|---|
|
BrushLayerSettings() |
protected |
BrushLayerSettings(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
Brush |
getBrush() |
int |
getBrushColor() |
float |
getBrushHardness() |
float |
getBrushSize() |
ProcessableLayerI |
getLayer() |
java.lang.Class<? extends AbstractEditorTool> |
getLayerToolClass() |
ProcessableLayerI |
getOrCreateLayer(Context context) |
Painting |
getPainting() |
boolean |
isInEditMode() |
protected void |
onBind(StateHandler stateHandler) |
protected void |
onEditModeChanged(EditorShowState showState) |
BrushLayerSettings |
setBrushColor(int color) |
BrushLayerSettings |
setBrushHardness(float brushHardness) |
BrushLayerSettings |
setBrushSize(float brushSize) |
void |
setIsInEditMode(boolean inEditMode) |
void |
writeToParcel(Parcel dest,
int flags) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, saveInitState, saveState
addCallback, flagAsDirty, getStateModel, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, removeCallback
addOnPropertyChangedCallback, removeOnPropertyChangedCallback
public BrushLayerSettings()
protected BrushLayerSettings(Parcel in)
public int describeContents()
describeContents
in class Settings<BrushLayerSettings.Event>
public Brush getBrush()
public int getBrushColor()
public float getBrushHardness()
public float getBrushSize()
@Nullable public ProcessableLayerI getLayer()
getLayer
in interface LayerListSettings.LayerSettings
public java.lang.Class<? extends AbstractEditorTool> getLayerToolClass()
getLayerToolClass
in interface LayerListSettings.LayerSettings
@NonNull public ProcessableLayerI getOrCreateLayer(@NonNull Context context)
getOrCreateLayer
in interface LayerListSettings.LayerSettings
public Painting getPainting()
public boolean isInEditMode()
isInEditMode
in interface LayerListSettings.LayerSettings
protected void onBind(StateHandler stateHandler)
onBind
in class StateObservable<BrushLayerSettings.Event>
protected void onEditModeChanged(EditorShowState showState)
public BrushLayerSettings setBrushColor(int color)
public BrushLayerSettings setBrushHardness(float brushHardness)
public BrushLayerSettings setBrushSize(float brushSize)
public void setIsInEditMode(boolean inEditMode)
setIsInEditMode
in interface LayerListSettings.LayerSettings
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class Settings<BrushLayerSettings.Event>