public class AliyunCaption
extends AliyunObject
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Object> |
mActions |
Constructor and Description |
---|
AliyunCaption() |
Modifier and Type | Method and Description |
---|---|
int |
addAction(java.lang.Object actionObj) |
int |
clearAction() |
java.util.List<java.lang.Object> |
getActionList() |
AliyunColor |
getBackgroundColor()
Get the background color of caption
Added in v3.23.0
|
float |
getBackgroundCornerRadius()
Get the background radius of caption
Added in v3.31.0
|
ISource |
getBubbleSource()
Get the template source for bubble text
Added in v3.23.0
|
AliyunColor |
getColor()
Get the text color of caption
|
long |
getDuration()
Get Caption Render Duration in milliseconds
|
ISource |
getFontEffectSource()
Get the template source for font effect
Added in v3.23.0
|
ISource |
getFontSource()
Get the font source.
|
AliyunFontStyle |
getFontStyle()
Get the font style of the caption
|
int |
getId()
Get Caption View ID
|
AliyunColor |
getOutlineColor()
Get the text stroke color of caption
|
float |
getOutlineWidth()
Get the text stroke width, unit: pixel
|
PointF |
getPosition()
Get the center point position (x,y) of the Caption, the value of x and y is between [0-1]
|
float |
getRotate()
Get the degree of rotation of the caption
|
float |
getScale()
Get the scale value of caption, the default is 1.0
|
AliyunColor |
getShadowColor()
Get the shadow color of caption
|
PointF |
getShadowOffset()
Get the offset value of the shadow, including (x, y) two directions, unit: pixel
|
RectF |
getSize()
Get the size of the Caption, get the width and height through
android.graphics.RectF#width() and android.graphics.RectF#height() |
long |
getStartTime()
Get Caption Render Start Time in milliseconds
|
java.lang.String |
getText()
Get Caption Text
|
int |
getTextAlignment()
Get alignment of text
Added in v3.23.0
|
int |
removeAction(java.lang.Object actionObj) |
void |
setBackgroundColor(AliyunColor aColor)
Set the background color of Caption
Added in v3.23.0
|
void |
setBackgroundCornerRadius(float radius)
Set the background corner radius of Caption
Added in v3.31.0
|
void |
setBubbleSource(ISource bubbleSource)
Set the template for bubble text
Added in v3.23.0
|
void |
setColor(AliyunColor aColor)
Set the text color of Caption
|
void |
setDuration(long aDuration)
Set Caption Render Duration in milliseconds
|
void |
setFontEffectSource(ISource fontEffectSource)
Set the template for font effect
Added in v3.23.0
|
void |
setFontStyle(AliyunFontStyle aFontStyle)
Set the font style of the caption
|
void |
setOutlineColor(AliyunColor aOutlineColor)
Set the text stroke color of caption
|
void |
setOutlineWidth(float aOutlineWidth)
Set the text stroke width, unit: pixel
|
void |
setPosition(PointF aPosition)
Set the center point position of the caption (x,y), the value of x and y are between [0-1]
|
void |
setRotate(float degree)
Set the degree of rotation of the caption
|
void |
setScale(float aScale)
Set caption scale value
|
void |
setShadowColor(AliyunColor aShadowColor)
Set the shadow color of caption
|
void |
setShadowOffset(PointF aShadowOffset)
Set the offset value of the shadow, including (x, y) two directions, unit: pixel
|
void |
setSize(RectF size)
Set the size of the Caption, get the width and height through
android.graphics.RectF#width() and android.graphics.RectF#height() |
void |
setStartTime(long aStartTime)
Set Caption Render Start Time in milliseconds
|
void |
setText(java.lang.String aText)
Set Caption Text
|
void |
setTextAlignment(int aTextAlignment)
Set the alignemnt of text
Added in v3.23.0
|
public int getId()
public long getStartTime()
public void setStartTime(long aStartTime)
aStartTime
- Start Time in millisecondspublic long getDuration()
public void setDuration(long aDuration)
aDuration
- Duration in millisecondspublic java.lang.String getText()
public void setText(java.lang.String aText)
aText
- Textpublic PointF getPosition()
public void setPosition(PointF aPosition)
aPosition
- center point position (x,y), the value of x and y is between [0-1]public RectF getSize()
android.graphics.RectF#width()
and android.graphics.RectF#height()
android.graphics.RectF
public void setSize(RectF size)
android.graphics.RectF#width()
and android.graphics.RectF#height()
android.graphics.RectF
public float getRotate()
public void setRotate(float degree)
aRotate
- degreepublic float getScale()
public void setScale(float aScale)
aScale
- > 0public AliyunFontStyle getFontStyle()
AliyunFontStyle
public void setFontStyle(AliyunFontStyle aFontStyle)
aFontStyle
- the font styleAliyunFontStyle
public int getTextAlignment()
public void setTextAlignment(int aTextAlignment)
aTextAlignment
- the aliment
e.g.
AlignLeft = 1;
AlignRight = 2;
AlignHCenter = 4;AliyunFontStyle
public AliyunColor getColor()
AliyunColor
public void setColor(AliyunColor aColor)
aColor
- color valueAliyunColor
public AliyunColor getBackgroundColor()
AliyunColor
public void setBackgroundColor(AliyunColor aColor)
aColor
- color valueAliyunColor
public void setBackgroundCornerRadius(float radius)
public float getBackgroundCornerRadius()
public AliyunColor getOutlineColor()
AliyunColor
public void setOutlineColor(AliyunColor aOutlineColor)
aOutlineColor
- color valueAliyunColor
public float getOutlineWidth()
public void setOutlineWidth(float aOutlineWidth)
aOutlineWidth
- stroke width, unit: pixelpublic AliyunColor getShadowColor()
AliyunColor
public void setShadowColor(AliyunColor aShadowColor)
aShadowColor
- color valueAliyunColor
public PointF getShadowOffset()
android.graphics.PointF
public void setShadowOffset(PointF aShadowOffset)
aShadowOffset
- The offset value of the shadow in (x,y)android.graphics.PointF
public ISource getBubbleSource()
public void setBubbleSource(ISource bubbleSource)
bubbleSource
- template Sourcepublic ISource getFontEffectSource()
public void setFontEffectSource(ISource fontEffectSource)
fontEffectSource
- template sourcepublic ISource getFontSource()
public int addAction(java.lang.Object actionObj)
public java.util.List<java.lang.Object> getActionList()
public int removeAction(java.lang.Object actionObj)
public int clearAction()