public class SubTitleTrack extends PhotoPasterTrack
PasterTrack.Type
mNodeKey
Constructor and Description |
---|
SubTitleTrack() |
Modifier and Type | Method and Description |
---|---|
Source |
getBackgroundImgPath()
获取背景图片资源
|
Source |
getFont()
获取字体资源
|
float |
getPreBegin()
获取配置文件中默认文字在视频时间轴上的的开始时间
|
float |
getPreEnd()
获取配置文件中默认文字在视频时间轴上的结束时间
|
java.lang.String |
getText()
获取文字内容
|
int |
getTextAlignment()
获取文字对齐方式
|
int |
getTextBackgroundColor()
获取文字背景颜色
|
java.lang.String |
getTextBmpPath()
设置文字view生成的图片的路径
|
int |
getTextColor()
获取文字颜色
|
float |
getTextHeight()
获取文字高度
|
int |
getTextMaxLines()
获取文字最大行数
|
float |
getTextPaddingX()
获取文字左边距
|
float |
getTextPaddingY()
获取文字上边距
|
float |
getTextRotation()
获取文字的旋转角度
|
float |
getTextSize()
获取字号
|
int |
getTextStrokeColor()
获取文字描边的颜色
|
float |
getTextWidth()
文字宽度
|
void |
setBackgroundImgPath(Source backgroundImgPath)
设置背景图片资源
|
void |
setFont(Source font)
设置字体资源
|
void |
setPreBegin(float preBegin)
Sets the preset time when the text appears on the stream timeline.
|
void |
setPreEnd(float preEnd)
Sets the preset time when the text disappears on the stream timeline.
|
void |
setText(java.lang.String text)
设置文字内容
|
void |
setTextAlignment(int textAlignment)
设置文字对齐方式
|
void |
setTextBackgroundColor(int textBackgroundColor)
设置文字背景颜色
|
void |
setTextBmpPath(java.lang.String textBmpPath)
设置文字view生成的图片的路径
|
void |
setTextColor(int textColor)
设置文字颜色
|
void |
setTextHeight(float textHeight)
设置文字高度
|
void |
setTextMaxLines(int textMaxLines)
设置文字最大行数
|
void |
setTextPaddingX(float textPaddingX)
设置文字左边距
|
void |
setTextPaddingY(float textPaddingY)
设置文字上边距
|
void |
setTextRotation(float textRotation)
设置文字的旋转角度
|
void |
setTextSize(float textSize)
设置字号
|
void |
setTextStrokeColor(int textStrokeColor)
设置文字描边的颜色
|
void |
setTextWidth(float textWidth)
设置文字宽度
|
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, toString
getType, setType
public java.lang.String getText()
public void setText(java.lang.String text)
text
- 文字内容public int getTextColor()
public void setTextColor(int textColor)
textColor
- 文字颜色public int getTextStrokeColor()
public void setTextStrokeColor(int textStrokeColor)
textStrokeColor
- 文字描边的颜色public Source getFont()
public void setFont(Source font)
font
- 字体资源public java.lang.String getTextBmpPath()
public void setTextBmpPath(java.lang.String textBmpPath)
textBmpPath
- 文字view生成的图片的路径public float getTextWidth()
public void setTextWidth(float textWidth)
textWidth
- 文字宽度public float getTextHeight()
public void setTextHeight(float textHeight)
textHeight
- 文字高度public int getTextBackgroundColor()
public void setTextBackgroundColor(int textBackgroundColor)
textBackgroundColor
- 文字背景颜色public Source getBackgroundImgPath()
public void setBackgroundImgPath(Source backgroundImgPath)
backgroundImgPath
- 背景图片资源public float getTextSize()
public void setTextSize(float textSize)
textSize
- 字号public float getTextPaddingX()
public void setTextPaddingX(float textPaddingX)
textPaddingX
- 文字左边距public float getTextPaddingY()
public void setTextPaddingY(float textPaddingY)
textPaddingY
- 文字上边距public int getTextAlignment()
public void setTextAlignment(int textAlignment)
textAlignment
- 文字对齐方式public int getTextMaxLines()
public void setTextMaxLines(int textMaxLines)
textMaxLines
- 文字最大行数public float getTextRotation()
public void setTextRotation(float textRotation)
textRotation
- 文字的旋转角度public float getPreBegin()
public void setPreBegin(float preBegin)
preBegin
- timepublic float getPreEnd()
public void setPreEnd(float preEnd)
preEnd
- time