public class SubTitleTrack extends PhotoPasterTrack
PasterTrack.Type
mNodeKey
Constructor and Description |
---|
SubTitleTrack() |
Modifier and Type | Method and Description |
---|---|
Source |
getBackgroundImgPath()
Gets the text background image.
|
Source |
getFont()
Gets The path of the text font resource.
|
float |
getPreBegin()
Gets The preset time when the text appears on the stream timeline.
|
float |
getPreEnd()
Gets the preset time when the text disappears on the stream timeline.
|
java.lang.String |
getText()
Gets the text contents.
|
int |
getTextAlignment()
Gets the text alignment method.
|
int |
getTextBackgroundColor()
Gets the text background color.
|
java.lang.String |
getTextBmpPath()
Gets the path of the image generated from the view of the text
|
int |
getTextColor()
Gets the text color.
|
float |
getTextHeight()
Gets the height of the view that displays the text.
|
int |
getTextMaxLines()
Sets the maximum number of text lines.
|
float |
getTextPaddingX()
Gets the x coordinate of the text relative to the origin in the upper left corner.
|
float |
getTextPaddingY()
Gets the y coordinate of the text relative to the origin in the upper left corner.
|
float |
getTextRotation()
Gets the rotation angle of the text.
|
float |
getTextSize()
Gets the text size.
|
int |
getTextStrokeColor()
Gets the text stroke color.
|
float |
getTextWidth()
Gets the width of the view that displays the text.
|
void |
setBackgroundImgPath(Source backgroundImgPath)
Sets the text background image.
|
void |
setFont(Source font)
Sets The path of the text font resource.
|
void |
setPreBegin(float preBegin) |
void |
setPreEnd(float preEnd) |
void |
setText(java.lang.String text)
Sets the text contents.
|
void |
setTextAlignment(int textAlignment)
Sets the text alignment method.
|
void |
setTextBackgroundColor(int textBackgroundColor)
Sets the text background color.
|
void |
setTextBmpPath(java.lang.String textBmpPath)
Sets the path of the image generated from the view of the text.
|
void |
setTextColor(int textColor)
Sets the text color.
|
void |
setTextHeight(float textHeight)
Sets the height of the view that displays the text.
|
void |
setTextMaxLines(int textMaxLines)
Sets the maximum number of text lines.
|
void |
setTextPaddingX(float textPaddingX)
Sets the x coordinate of the text relative to the origin in the upper left corner.
|
void |
setTextPaddingY(float textPaddingY)
Sets the y coordinate of the text relative to the origin in the upper left corner.
|
void |
setTextRotation(float textRotation)
Sets the rotation angle of the text.
|
void |
setTextSize(float textSize)
Sets the text size.
|
void |
setTextStrokeColor(int textStrokeColor)
Sets the text stroke color.
|
void |
setTextWidth(float textWidth)
Sets the width of the view that displays the text.
|
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
- text contentspublic int getTextColor()
public void setTextColor(int textColor)
textColor
- text colorpublic int getTextStrokeColor()
public void setTextStrokeColor(int textStrokeColor)
textStrokeColor
- text stroke colorpublic Source getFont()
public void setFont(Source font)
font
- font resourcepublic java.lang.String getTextBmpPath()
public void setTextBmpPath(java.lang.String textBmpPath)
textBmpPath
- text image pathpublic float getTextWidth()
public void setTextWidth(float textWidth)
textWidth
- text widthpublic float getTextHeight()
public void setTextHeight(float textHeight)
textHeight
- text heightpublic int getTextBackgroundColor()
public void setTextBackgroundColor(int textBackgroundColor)
textBackgroundColor
- text background colorpublic Source getBackgroundImgPath()
public void setBackgroundImgPath(Source backgroundImgPath)
backgroundImgPath
- background imagepublic float getTextSize()
public void setTextSize(float textSize)
textSize
- text sizepublic float getTextPaddingX()
public void setTextPaddingX(float textPaddingX)
textPaddingX
- x coordinatepublic float getTextPaddingY()
public void setTextPaddingY(float textPaddingY)
textPaddingY
- y coordinatepublic int getTextAlignment()
public void setTextAlignment(int textAlignment)
textAlignment
- text alignmentpublic int getTextMaxLines()
public void setTextMaxLines(int textMaxLines)
textMaxLines
- max linepublic float getTextRotation()
public void setTextRotation(float textRotation)
textRotation
- rotation anglepublic float getPreBegin()
public void setPreBegin(float preBegin)
public float getPreEnd()
public void setPreEnd(float preEnd)