public class TextLayerSettings extends Settings<TextLayerSettings.Event> implements StickerLayerSettings
Modifier and Type | Class and Description |
---|---|
static class |
TextLayerSettings.Event |
class |
TextLayerSettings.ScaleContext |
Settings.RevertibleField, Settings.SaveState
StateObservable.StateUnbindedException
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<TextLayerSettings> |
CREATOR |
isRevertible, revertibleFields, STATE_REVERTED
isConfigObject
Modifier | Constructor and Description |
---|---|
protected |
TextLayerSettings(android.os.Parcel in) |
|
TextLayerSettings(StickerConfigInterface stickerConfig) |
createSaveState, getFrozenSettings, getSettingsModel, hasChanges, hasRevertableState, isFrozen, isRevertible, revertState, saveInitState, saveState
addCallback, addCallback, getSettingsHandler, getStateModel, hasModelNonDefaultValue, notifyPropertyChanged, onBind, onBind, removeCallback, removeCallback
public static final android.os.Parcelable.Creator<TextLayerSettings> CREATOR
protected TextLayerSettings(android.os.Parcel in)
public TextLayerSettings(StickerConfigInterface stickerConfig)
public int describeContents()
describeContents
in interface android.os.Parcelable
describeContents
in class Settings<TextLayerSettings.Event>
public TextLayerSettings flipHorizontal()
flipHorizontal
in interface StickerLayerSettings
public TextLayerSettings flipVertical()
flipVertical
in interface StickerLayerSettings
public TextLayerSettings.ScaleContext generateScaledContext(android.graphics.Rect rect)
public android.graphics.ColorMatrix getColorMatrix()
getColorMatrix
in interface StickerLayerSettings
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
@NonNull public StickerConfigInterface getStickerConfig()
getStickerConfig
in interface StickerLayerSettings
public float getStickerRotation()
getStickerRotation
in interface StickerLayerSettings
public double getStickerTextSize()
public double getStickerWidth()
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<TextLayerSettings.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
public void revertState(Settings.SaveState saveState)
revertState
in class Settings<TextLayerSettings.Event>
public TextLayerSettings setColorMatrix(android.graphics.ColorMatrix filter)
setColorMatrix
in interface StickerLayerSettings
public void setIsInEditMode(boolean inEditMode)
setIsInEditMode
in interface LayerListSettings.LayerSettings
public TextLayerSettings setPosition(double x, double y, float angle, double textSize)
setPosition
in interface StickerLayerSettings
public TextLayerSettings setPosition(double x, double y, float angle, double textSize, double stickerWidth)
public TextLayerSettings setStickerConfig(StickerConfigInterface stickerConfig)
setStickerConfig
in interface StickerLayerSettings
public void setStickerInk(int color)
setStickerInk
in interface StickerLayerSettings
public TextLayerSettings setStickerRotation(float stickerRotation)
setStickerRotation
in interface StickerLayerSettings
public void setStickerTint(int color)
setStickerTint
in interface StickerLayerSettings
public void setStickerWidth(double stickerWidth)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
writeToParcel
in class Settings<TextLayerSettings.Event>