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
|
ISource |
getBubbleSource()
Get the template source for bubble text
Added in
|
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
|
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
|
int |
removeAction(java.lang.Object actionObj) |
void |
setBackgroundColor(AliyunColor aColor)
Set the background color of Caption
Added in
|
void |
setBubbleSource(ISource bubbleSource)
Set the template for bubble text
Added in
|
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
|
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
|
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.RectFpublic void setSize(RectF size)
android.graphics.RectF#width() and android.graphics.RectF#height()android.graphics.RectFpublic float getRotate()
public void setRotate(float degree)
aRotate - degreepublic float getScale()
public void setScale(float aScale)
aScale - > 0public AliyunFontStyle getFontStyle()
AliyunFontStylepublic void setFontStyle(AliyunFontStyle aFontStyle)
aFontStyle - the font styleAliyunFontStylepublic int getTextAlignment()
public void setTextAlignment(int aTextAlignment)
aTextAlignment - the aliment
e.g.
AlignLeft = 1;
AlignRight = 2;
AlignHCenter = 4;AliyunFontStylepublic AliyunColor getColor()
AliyunColorpublic void setColor(AliyunColor aColor)
aColor - color valueAliyunColorpublic AliyunColor getBackgroundColor()
AliyunColorpublic void setBackgroundColor(AliyunColor aColor)
aColor - color valueAliyunColorpublic AliyunColor getOutlineColor()
AliyunColorpublic void setOutlineColor(AliyunColor aOutlineColor)
aOutlineColor - color valueAliyunColorpublic float getOutlineWidth()
public void setOutlineWidth(float aOutlineWidth)
aOutlineWidth - stroke width, unit: pixelpublic AliyunColor getShadowColor()
AliyunColorpublic void setShadowColor(AliyunColor aShadowColor)
aShadowColor - color valueAliyunColorpublic PointF getShadowOffset()
android.graphics.PointFpublic void setShadowOffset(PointF aShadowOffset)
aShadowOffset - The offset value of the shadow in (x,y)android.graphics.PointFpublic 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()