public class TextStickerConfig
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<TextStickerConfig> |
CREATOR |
Modifier | Constructor and Description |
---|---|
protected |
TextStickerConfig(android.os.Parcel in) |
|
TextStickerConfig(java.lang.String text,
android.graphics.Paint.Align align,
FontAsset font,
int color,
int backgroundColor) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
android.graphics.Paint.Align |
getAlign()
Get the text align of the Text-Sticker
|
int |
getBackgroundColor()
Get the Background Color
|
int |
getColor()
Get the Foreground Color
|
FontAsset |
getFont()
Get the Text-Sticker Font
|
java.lang.String |
getText()
Get the Text-Sticker Text
|
android.graphics.Typeface |
getTypeface()
Get the font Typeface
|
int |
hashCode() |
void |
setAlign(android.graphics.Paint.Align align)
Get the text align
|
void |
setBackgroundColor(int color)
Set background Color
|
void |
setColor(int color)
Set foreground Color
|
void |
setFont(FontAsset font)
Set the Text-Sticker font
|
void |
setText(java.lang.String text)
Set Text-Sticker text
|
void |
setText(java.lang.String text,
android.graphics.Paint.Align align)
Deprecated.
not implemented
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<TextStickerConfig> CREATOR
public TextStickerConfig(java.lang.String text, android.graphics.Paint.Align align, FontAsset font, int color, int backgroundColor)
protected TextStickerConfig(android.os.Parcel in)
public java.lang.String getText()
public void setText(java.lang.String text)
text
- text stringpublic FontAsset getFont()
public void setFont(FontAsset font)
font
- font config objectpublic android.graphics.Paint.Align getAlign()
public void setAlign(android.graphics.Paint.Align align)
align
- the align of the Text-Sticker@Nullable public android.graphics.Typeface getTypeface()
public int getColor()
public void setColor(int color)
color
- 32bit rgba color valuepublic int getBackgroundColor()
public void setBackgroundColor(int color)
color
- 32bit rgba color valuepublic void setText(java.lang.String text, android.graphics.Paint.Align align)
text
- text stringalign
- text alignpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable