public class BrushLayerSettings extends Settings<BrushLayerSettings.Event> implements LayerListSettings.LayerSettings
| Modifier and Type | Class and Description |
|---|---|
static class |
BrushLayerSettings.Event |
Settings.RevertibleFieldStateObservable.StateUnbindedExeption| Modifier and Type | Field and Description |
|---|---|
static android.os.Parcelable.Creator<BrushLayerSettings> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED, STATE_REVERTED_EVENTSTATE_INVALID, STATE_INVALID_EVENT| Modifier | Constructor and Description |
|---|---|
|
BrushLayerSettings() |
protected |
BrushLayerSettings(android.os.Parcel in) |
| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
Brush |
getBrush() |
int |
getBrushColor() |
float |
getBrushHardness() |
float |
getBrushSize() |
LayerListSettings.Layer |
getLayer() |
java.lang.Class<? extends AbstractEditorTool> |
getLayerToolClass() |
LayerListSettings.Layer |
getOrCreateLayer(android.content.Context context) |
Painting |
getPainting() |
boolean |
isInEditMode() |
protected void |
onBind(StateHandler stateHandler) |
BrushLayerSettings |
setBrushColor(int color) |
BrushLayerSettings |
setBrushHardness(float brushHardness) |
BrushLayerSettings |
setBrushSize(float brushSize) |
void |
setIsInEditMode(boolean inEditMode) |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isRevertible, revertState, saveInitState, saveStateaddCallback, getStateModel, invalidate, isFrozen, isInvalidateble, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, removeCallbackpublic static final android.os.Parcelable.Creator<BrushLayerSettings> CREATOR
public BrushLayerSettings()
protected BrushLayerSettings(android.os.Parcel in)
protected void onBind(StateHandler stateHandler)
onBind in class StateObservable<BrushLayerSettings.Event>public float getBrushSize()
public BrushLayerSettings setBrushSize(float brushSize)
public float getBrushHardness()
public BrushLayerSettings setBrushHardness(float brushHardness)
public int getBrushColor()
public BrushLayerSettings setBrushColor(int color)
public Brush getBrush()
public Painting getPainting()
@NonNull public LayerListSettings.Layer getOrCreateLayer(@NonNull android.content.Context context)
getOrCreateLayer in interface LayerListSettings.LayerSettings@Nullable public LayerListSettings.Layer getLayer()
getLayer in interface LayerListSettings.LayerSettingspublic java.lang.Class<? extends AbstractEditorTool> getLayerToolClass()
getLayerToolClass in interface LayerListSettings.LayerSettingspublic void setIsInEditMode(boolean inEditMode)
setIsInEditMode in interface LayerListSettings.LayerSettingspublic boolean isInEditMode()
isInEditMode in interface LayerListSettings.LayerSettingspublic int describeContents()
describeContents in interface android.os.ParcelabledescribeContents in class Settings<BrushLayerSettings.Event>public void writeToParcel(android.os.Parcel dest,
int flags)
writeToParcel in interface android.os.ParcelablewriteToParcel in class Settings<BrushLayerSettings.Event>