java.lang.Object | |
↳ | com.ksyun.media.shortvideo.sticker.KSYStickerItem |
for sticker draw
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public long | mDuration | ||||||||||
public long | mStartTime |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
KSYStickerItem(StickerHelpBoxInfo helpBoxInfo) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
draw(Canvas canvas)
draw sticker
| ||||||||||
void | drawSticker(Canvas canvas) | ||||||||||
RectF | getBitRect() | ||||||||||
RectF | getDeleteRect() | ||||||||||
boolean | getDraw() | ||||||||||
long | getDuration() | ||||||||||
long | getEndTime() | ||||||||||
RectF | getRotateRect() | ||||||||||
long | getStartTime() | ||||||||||
int | getStickerType() | ||||||||||
String |
getText()
返回文字信息,可能为null
| ||||||||||
float |
getTextSize()
return current text size
| ||||||||||
void | init(KSYStickerInfo info, View parentView) | ||||||||||
void | release() | ||||||||||
void |
setAutoNewLine(boolean autoNewLine)
auto new line for text
| ||||||||||
void | setDraw(boolean draw) | ||||||||||
void | setDrawHelpTool(boolean draw) | ||||||||||
void |
setText(String text)
修改/增加文字内容
| ||||||||||
void |
setTextColor(int newColor)
set color of text
| ||||||||||
void |
setUpdateListener(KSYStickerView.OnUpdateDrawListener listener)
由贴纸内部触发贴纸父控件的绘制
| ||||||||||
void |
startDraw()
开始动态贴纸的解析
| ||||||||||
void |
stopDraw()
停止动态贴纸的解析
| ||||||||||
void |
updatePos(float dx, float dy)
update pos
| ||||||||||
void |
updateRotateAndScale(float dx, float dy)
旋转 缩放 更新
| ||||||||||
void | updateScale(float scale) | ||||||||||
void |
updateStickerInfo(long startTime, long duration)
更新贴纸的时间信息
| ||||||||||
void |
updateStickerInfo(KSYStickerInfo info, View parentView)
会对本贴纸做重新初始化,之前的旋转缩放移动等信息会失效
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
draw sticker
返回文字信息,可能为null
return current text size
auto new line for text
修改/增加文字内容
set color of text
开始动态贴纸的解析
停止动态贴纸的解析
update pos
旋转 缩放 更新
更新贴纸的时间信息