public class OverlaySettings extends Settings<OverlaySettings.Event> implements LayerListSettings.LayerSettings
Modifier and Type | Class and Description |
---|---|
static class |
OverlaySettings.Event |
class |
OverlaySettings.ScaleContext |
Settings.RevertibleField
StateObservable.StateUnbindedException
Modifier and Type | Field and Description |
---|---|
static <any> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED
Modifier | Constructor and Description |
---|---|
|
OverlaySettings() |
protected |
OverlaySettings(Parcel in) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, saveInitState, saveState
addCallback, addCallback, getSettingsHandler, getStateModel, notifyPropertyChanged, onBind, removeCallback, removeCallback
public OverlaySettings()
protected OverlaySettings(Parcel in)
public void callPreviewDirty()
public int describeContents()
describeContents
in class Settings<OverlaySettings.Event>
public OverlaySettings.ScaleContext generateScaledContext(Rect rect)
public float getBackdropAngle()
public double getBackdropRadius()
public double getBackdropX()
public double getBackdropY()
public BlendMode getBlendMode()
public float getIntensity()
@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 OverlayConfigInterface getOverlayConfig()
public boolean isHorizontalMirrored()
public boolean isInEditMode()
isInEditMode
in interface LayerListSettings.LayerSettings
protected void onBind(StateHandler stateHandler)
onBind
in class StateObservable<OverlaySettings.Event>
public OverlaySettings setBackdropAngle(float stickerAngle)
public OverlaySettings setBackdropPosition(double focusX, double focusY, float focusAngle, double focusRadius)
public void setBlendMode(BlendMode blendMode)
public void setIntensity(float intensity)
intensity
- intensity from 0.0 - 1.0.public void setIsInEditMode(boolean inEditMode)
setIsInEditMode
in interface LayerListSettings.LayerSettings
public void setOverlayConfig(@NonNull OverlayConfigInterface overlayConfig)
overlayConfig
- overlay config.public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class Settings<OverlaySettings.Event>