public class ImageStickerLayerSettings extends Settings<ImageStickerLayerSettings.Event> implements StickerLayerSettings
Modifier and Type | Class and Description |
---|---|
static class |
ImageStickerLayerSettings.Event |
class |
ImageStickerLayerSettings.ScaleContext |
Settings.RevertibleField, Settings.SaveState
StateObservable.StateUnbindedException
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<ImageStickerLayerSettings> |
CREATOR |
double |
serializeAspect |
isRevertible, revertibleFields, STATE_REVERTED
isConfigObject
Modifier | Constructor and Description |
---|---|
protected |
ImageStickerLayerSettings(android.os.Parcel in) |
|
ImageStickerLayerSettings(StickerConfigInterface stickerConfig) |
createSaveState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, saveInitState, saveState
addCallback, addCallback, getSettingsHandler, getStateModel, hasModelNonDefaultValue, notifyPropertyChanged, onBind, onBind, removeCallback, removeCallback
public static final android.os.Parcelable.Creator<ImageStickerLayerSettings> CREATOR
public double serializeAspect
protected ImageStickerLayerSettings(android.os.Parcel in)
public ImageStickerLayerSettings(StickerConfigInterface stickerConfig)
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class Settings<ImageStickerLayerSettings.Event>
public ImageStickerLayerSettings flipHorizontal()
flipHorizontal
in interface StickerLayerSettings
public ImageStickerLayerSettings flipVertical()
flipVertical
in interface StickerLayerSettings
public ImageStickerLayerSettings.ScaleContext generateScaledContext(android.graphics.Rect rect)
public float getBrightness()
public android.graphics.ColorMatrix getColorMatrix()
getColorMatrix
in interface StickerLayerSettings
public float getContrast()
public MultiRect getDestination()
public int getInkColor()
getInkColor
in interface StickerLayerSettings
@Nullable public LayerI getLayer()
getLayer
in interface LayerListSettings.LayerSettings
public java.lang.Class<? extends AbstractEditorTool> getLayerToolClass()
getLayerToolClass
in interface LayerListSettings.LayerSettings
@NonNull public LayerI getOrCreateLayer(@NonNull android.content.Context context)
getOrCreateLayer
in interface LayerListSettings.LayerSettings
public double getRelativeHeight()
public double getRelativeWidth()
public float getSaturation()
@NonNull public StickerConfigInterface getStickerConfig()
getStickerConfig
in interface StickerLayerSettings
public float getStickerRotation()
getStickerRotation
in interface StickerLayerSettings
public double getStickerSize()
public double getStickerX()
getStickerX
in interface StickerLayerSettings
public double getStickerY()
getStickerY
in interface StickerLayerSettings
public int getTintColor()
getTintColor
in interface StickerLayerSettings
public boolean hasInitialPosition()
public boolean hasNonDefaults()
hasNonDefaults
in interface LayerListSettings.LayerSettings
hasNonDefaults
in class Settings<ImageStickerLayerSettings.Event>
public boolean isHorizontalMirrored()
isHorizontalMirrored
in interface StickerLayerSettings
public boolean isInEditMode()
isInEditMode
in interface StickerLayerSettings
isInEditMode
in interface LayerListSettings.LayerSettings
public boolean isSingleton()
isSingleton
in interface LayerListSettings.LayerSettings
protected void revertState()
revertState
in class Settings<ImageStickerLayerSettings.Event>
public void revertState(Settings.SaveState saveState)
revertState
in class Settings<ImageStickerLayerSettings.Event>
public void setBrightness(float brightness)
@Deprecated public ImageStickerLayerSettings setColorMatrix(android.graphics.ColorMatrix filter)
setColorMatrix
in interface StickerLayerSettings
public void setContrast(float contrast)
public void setIsInEditMode(boolean inEditMode)
setIsInEditMode
in interface LayerListSettings.LayerSettings
public ImageStickerLayerSettings setPosition(double stickerX, double stickerY, float stickerAngle, double stickerSize)
setPosition
in interface StickerLayerSettings
public void setPostConcatColorMatrix(@Nullable android.graphics.ColorMatrix postConcatColorMatrix)
public void setPreConcatColorMatrix(@Nullable android.graphics.ColorMatrix preConcatColorMatrix)
public void setSaturation(float saturation)
public void setSerializeAspect(double serializeAspect)
public ImageStickerLayerSettings setStickerConfig(StickerConfigInterface stickerConfig)
setStickerConfig
in interface StickerLayerSettings
public void setStickerInk(int color)
setStickerInk
in interface StickerLayerSettings
public ImageStickerLayerSettings setStickerRotation(float stickerRotation)
setStickerRotation
in interface StickerLayerSettings
public void setStickerTint(int color)
setStickerTint
in interface StickerLayerSettings
protected void updateColorMatrix()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Settings<ImageStickerLayerSettings.Event>