public class StickerLayerSettings extends Settings<StickerLayerSettings.Event> implements LayerListSettings.LayerSettings
Modifier and Type | Class and Description |
---|---|
static class |
StickerLayerSettings.Event |
class |
StickerLayerSettings.ScaleContext |
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 |
---|---|
protected |
StickerLayerSettings(Parcel in) |
|
StickerLayerSettings(StickerConfigInterface stickerConfig) |
getDefaultCompareState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, saveInitState, saveState
addCallback, flagAsDirty, getStateModel, notifyChange, notifyPropertyChanged, notifyPropertyChanged, onBind, onBind, removeCallback
addOnPropertyChangedCallback, removeOnPropertyChangedCallback
protected StickerLayerSettings(Parcel in)
public StickerLayerSettings(StickerConfigInterface stickerConfig)
public int describeContents()
describeContents
in class Settings<StickerLayerSettings.Event>
public StickerLayerSettings flipHorizontal()
public StickerLayerSettings flipVertical()
public StickerLayerSettings.ScaleContext generateScaledContext(Rect rect)
public ColorFilter getColorFilter()
public int getInkColor()
@Nullable public StickerLayer getLayer()
getLayer
in interface LayerListSettings.LayerSettings
public java.lang.Class<? extends AbstractEditorTool> getLayerToolClass()
getLayerToolClass
in interface LayerListSettings.LayerSettings
@NonNull public StickerLayer getOrCreateLayer(@NonNull Context context)
getOrCreateLayer
in interface LayerListSettings.LayerSettings
public float getStickerAngle()
public StickerConfigInterface getStickerConfig()
public java.math.BigDecimal getStickerRadius()
public java.math.BigDecimal getStickerX()
public java.math.BigDecimal getStickerY()
public int getTintColor()
public boolean isHorizontalMirrored()
public boolean isInEditMode()
isInEditMode
in interface LayerListSettings.LayerSettings
public StickerLayerSettings setColorFilter(ColorFilter filter)
public StickerLayerSettings setFocusPosition(java.math.BigDecimal focusX, java.math.BigDecimal focusY, float focusAngle, java.math.BigDecimal focusRadius)
public void setIsInEditMode(boolean inEditMode)
setIsInEditMode
in interface LayerListSettings.LayerSettings
public StickerLayerSettings setStickerAngle(float stickerAngle)
public StickerLayerSettings setStickerConfig(StickerConfigInterface stickerConfig)
public void setStickerInk(int color)
public void setStickerTint(int color)
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in class Settings<StickerLayerSettings.Event>