public class AliyunPasterControllerCompoundCaption
extends java.lang.Object
implements com.aliyun.svideosdk.editor.impl.AliyunIAnimationDelegate
限定符和类型 | 字段和说明 |
---|---|
protected com.aliyun.svideosdk.editor.impl.AliyunIAnimationDelegate |
mAnimationDelegate |
protected MODEL |
mModel |
protected AliyunPasterRender |
mRender |
限定符和类型 | 方法和说明 |
---|---|
int |
addFrameAnimation(ActionBase action)
Adds an animation to a stream or material.
|
void |
apply() |
java.lang.String |
getBubbleEffectTemplate()
Get the template path for bubble text
Added in v3.22.0
|
com.aliyun.svideosdk.common.AliyunColor |
getColor()
Get the text color of caption
Added in v3.22.0
|
long |
getDuration()
Get Caption Render Duration in milliseconds
|
java.lang.String |
getFontEffectTemplate()
Get the template path for font effect
Added in v3.22.0
|
com.aliyun.svideosdk.common.AliyunFontStyle |
getFontStyle()
Get the font style of the caption
Added in v3.22.0
|
java.util.List<ActionBase> |
getFrameAnimations()
Get Frame Animation List
Added in v3.22.0
|
com.aliyun.svideosdk.common.AliyunColor |
getOutlineColor()
Get the text stroke color of caption
Added in v3.22.0
|
float |
getOutlineWidth()
Get the text stroke width, unit: pixel
Added in v3.22.0
|
android.graphics.PointF |
getPosition() |
float |
getRotate() |
float |
getScale()
Get the scale value of caption, the default is 1.0
Added in v3.22.0
|
com.aliyun.svideosdk.common.AliyunColor |
getShadowColor()
Get the shadow color of caption
Added in v3.22.0
|
android.graphics.PointF |
getShadowOffset()
Get the offset value of the shadow, including (x, y) two directions, unit: pixel,range: [0-32]
Added in v3.22.0
|
android.graphics.RectF |
getSize() |
long |
getStartTime()
Get Caption Render Start Time in milliseconds
|
java.lang.String |
getText()
Get Caption Text
Added in v3.22.0
|
int |
getType()
Gets the sticker type.
|
int |
removeFrameAnimation(ActionBase action)
Removes an animation.
|
void |
setBubbleEffectTemplate(java.lang.String aStyleTemplate)
Set the template for bubble text
Added in v3.22.0
|
void |
setColor(com.aliyun.svideosdk.common.AliyunColor aColor)
Set the text color of Caption
Added in v3.22.0
|
void |
setDuration(long aDuration) |
void |
setFontEffectTemplate(java.lang.String aStyleTemplate)
Set the template for font effect
Added in v3.22.0
|
void |
setFontStyle(com.aliyun.svideosdk.common.AliyunFontStyle aFontStyle)
Set the font style of the caption
Added in v3.22.0
|
void |
setOutlineColor(com.aliyun.svideosdk.common.AliyunColor aOutlineColor)
Set the text stroke color of caption
Added in v3.22.0
|
void |
setOutlineWidth(float aOutlineWidth)
Set the text stroke width, unit: pixel, range : [0-64]
Added in v3.22.0
|
void |
setPosition(android.graphics.PointF aPosition) |
void |
setRotate(float degree) |
void |
setScale(float aScale)
Set caption scale value
Added in v3.22.0
|
void |
setShadowColor(com.aliyun.svideosdk.common.AliyunColor aShadowColor)
Set the shadow color of caption
Added in v3.22.0
|
void |
setShadowOffset(android.graphics.PointF aShadowOffset)
Set the offset value of the shadow, including (x, y) two directions, unit: pixel, range: [0-32]
Added in v3.22.0
|
void |
setStartTime(long aStartTime)
Set Caption Render Start Time in milliseconds
|
void |
setText(java.lang.String aText)
Set Caption Text
Added in v3.22.0
|
protected com.aliyun.svideosdk.editor.impl.AliyunIAnimationDelegate mAnimationDelegate
protected MODEL mModel
protected AliyunPasterRender mRender
public int getType()
AliyunIPasterController
getType
在接口中 AliyunIPasterController
EffectPaster.PASTER_TYPE_GIF
,
EffectPaster.PASTER_TYPE_TEXT
public long getStartTime()
getStartTime
在接口中 AliyunIPasterController
public void setStartTime(long aStartTime)
setStartTime
在接口中 AliyunIPasterController
aStartTime
- Start Time in millisecondspublic long getDuration()
getDuration
在接口中 AliyunIPasterController
public void setDuration(long aDuration)
setDuration
在接口中 AliyunIPasterController
public android.graphics.PointF getPosition()
getPosition
在接口中 AliyunIPasterController
public void setPosition(android.graphics.PointF aPosition)
setPosition
在接口中 AliyunIPasterController
public android.graphics.RectF getSize()
getSize
在接口中 AliyunIPasterController
public float getRotate()
getRotate
在接口中 AliyunIPasterController
public void setRotate(float degree)
setRotate
在接口中 AliyunIPasterController
public java.lang.String getText()
public void setText(java.lang.String aText)
aText
- Textpublic float getScale()
public void setScale(float aScale)
aScale
- > 0public com.aliyun.svideosdk.common.AliyunFontStyle getFontStyle()
AliyunFontStyle
public void setFontStyle(com.aliyun.svideosdk.common.AliyunFontStyle aFontStyle)
aFontStyle
- the font styleAliyunFontStyle
public com.aliyun.svideosdk.common.AliyunColor getColor()
AliyunColor
public void setColor(com.aliyun.svideosdk.common.AliyunColor aColor)
aColor
- color valueAliyunColor
public com.aliyun.svideosdk.common.AliyunColor getOutlineColor()
AliyunColor
public void setOutlineColor(com.aliyun.svideosdk.common.AliyunColor aOutlineColor)
aOutlineColor
- color valueAliyunColor
public float getOutlineWidth()
public void setOutlineWidth(float aOutlineWidth)
aOutlineWidth
- stroke width, unit: pixelpublic com.aliyun.svideosdk.common.AliyunColor getShadowColor()
AliyunColor
public void setShadowColor(com.aliyun.svideosdk.common.AliyunColor aShadowColor)
aShadowColor
- color valueAliyunColor
public android.graphics.PointF getShadowOffset()
PointF
public void setShadowOffset(android.graphics.PointF aShadowOffset)
aShadowOffset
- The offset value of the shadow in (x,y)PointF
public void setBubbleEffectTemplate(java.lang.String aStyleTemplate)
aStyleTemplate
- template pathpublic java.lang.String getBubbleEffectTemplate()
public void setFontEffectTemplate(java.lang.String aStyleTemplate)
aStyleTemplate
- template pathpublic java.lang.String getFontEffectTemplate()
public void apply()
public int addFrameAnimation(ActionBase action)
addFrameAnimation
在接口中 com.aliyun.svideosdk.editor.impl.AliyunIAnimationDelegate
action
- ActionBase
public int removeFrameAnimation(ActionBase action)
removeFrameAnimation
在接口中 com.aliyun.svideosdk.editor.impl.AliyunIAnimationDelegate
action
- public java.util.List<ActionBase> getFrameAnimations()