public class CaptionTrack extends PhotoPasterTrack
PasterTrack.Type
Modifier and Type | Field and Description |
---|---|
float |
mScale
the scale value of caption, default:1.0
|
mNodeKey
Constructor and Description |
---|
CaptionTrack() |
Modifier and Type | Method and Description |
---|---|
static CaptionTrack |
fromCaption(AliyunCaption aCaption) |
int |
getBackgroundColor()
Gets the background color.
|
float |
getBackgroundCornerRadius()
Gets the background radius.
|
Source |
getFont()
Gets the font resource.
|
Source |
getFontEffectSource()
Gets the effect of the text font.
|
float |
getFontSize()
Gets the font size.
|
int |
getOutlineColor()
Gets the text stroke color of
|
float |
getOutlineWidth()
Gets the text stroke color of
|
float |
getScale()
Gets the scale value of caption, default:1.0
|
int |
getShadowColor()
Sets the shadow color of
|
float |
getShadowOffsetX()
Gets the offset x value of the shadow.
|
float |
getShadowOffsetY()
Gets the offset y value of the shadow.
|
java.lang.String |
getText()
Gets the text contents.
|
int |
getTextAlignment()
Gets the text alignment.
|
int |
getTextColor()
Gets the text color.
|
int |
getTypeface()
Gets the font typeface.
|
void |
setBackgroundColor(int aBackgroundColor)
Sets the background color.
|
void |
setBackgroundCornerRadius(float backgroundCornerRadius)
Sets the background radius.
|
void |
setCaption(AliyunCaption caption) |
void |
setFont(Source font)
Sets the font resource.
|
void |
setFontEffectSource(Source fontEffectSource)
Sets the effect of the text font.
|
void |
setFontSize(float fontSize)
Sets the font size.
|
void |
setOutlineColor(int outlineColor)
Sets the text stroke color of
|
void |
setOutlineWidth(float outlineWidth)
Sets the text stroke color of
|
void |
setScale(float scale)
Sets the scale value of caption, default:1.0
|
void |
setShadowColor(int shadowColor)
Gets the shadow color of
|
void |
setShadowOffsetX(float shadowOffsetX)
Sets the offset x value of the shadow.
|
void |
setShadowOffsetY(float shadowOffsetY)
Sets the offset y value of the shadow.
|
void |
setText(java.lang.String text)
Sets the text contents.
|
void |
setTextAlignment(int aTextAlignment)
Sets the text alignment.
|
void |
setTextColor(int textColor)
Sets the text color.
|
void |
setTypeface(int typeface)
Sets the font typeface.
|
AliyunCaption |
toCaption() |
java.lang.String |
toString() |
void |
updateInfo() |
getActions, getFrameArray, getHeight, getName, getNodeKey, getRotation, getSource, getTimeArray, getTimelineIn, getTimelineOut, getWidth, getX, getY, isMirror, setFrameArray, setHeight, setMirror, setName, setNodeKey, setRotation, setSource, setTimeArray, setTimelineIn, setTimelineOut, setWidth, setX, setY
getType, setType
public java.lang.String getText()
public void setText(java.lang.String text)
text
- textpublic float getScale()
public void setScale(float scale)
scale
- scalepublic float getFontSize()
public void setFontSize(float fontSize)
fontSize
- font sizepublic int getTypeface()
public void setTypeface(int typeface)
typeface
- typefacepublic int getTextColor()
public void setTextColor(int textColor)
textColor
- font colorpublic int getOutlineColor()
public void setOutlineColor(int outlineColor)
outlineColor
- outlineColorpublic float getOutlineWidth()
public void setOutlineWidth(float outlineWidth)
outlineWidth
- outlineWidthpublic int getShadowColor()
public void setShadowColor(int shadowColor)
shadowColor
- shadow colorpublic float getShadowOffsetX()
public void setShadowOffsetX(float shadowOffsetX)
shadowOffsetX
- offset xpublic float getShadowOffsetY()
public void setShadowOffsetY(float shadowOffsetY)
shadowOffsetY
- offset ypublic Source getFont()
public void setFont(Source font)
font
- font resourcepublic Source getFontEffectSource()
public int getTextAlignment()
public void setTextAlignment(int aTextAlignment)
aTextAlignment
- text alignmentpublic int getBackgroundColor()
public void setBackgroundColor(int aBackgroundColor)
aBackgroundColor
- background colorpublic float getBackgroundCornerRadius()
public void setBackgroundCornerRadius(float backgroundCornerRadius)
backgroundCornerRadius
- background color radiuspublic void setFontEffectSource(Source fontEffectSource)
fontEffectSource
- font effectpublic void setCaption(AliyunCaption caption)
public void updateInfo()
public static CaptionTrack fromCaption(AliyunCaption aCaption)
public AliyunCaption toCaption()
public java.lang.String toString()
toString
in class PhotoPasterTrack