public class SpannedCacheStuffer extends SimpleTextCacheStuffer
BaseCacheStuffer.ProxymProxy| 构造器和说明 |
|---|
SpannedCacheStuffer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearCache(BaseDanmaku danmaku) |
void |
clearCaches()
clear caches which created by this stuffer
|
void |
drawStroke(BaseDanmaku danmaku,
java.lang.String lineText,
android.graphics.Canvas canvas,
float left,
float top,
android.graphics.Paint paint) |
void |
drawText(BaseDanmaku danmaku,
java.lang.String lineText,
android.graphics.Canvas canvas,
float left,
float top,
android.text.TextPaint paint,
boolean fromWorkerThread) |
void |
measure(BaseDanmaku danmaku,
android.text.TextPaint paint,
boolean fromWorkerThread)
set paintWidth, paintHeight to danmaku
|
void |
releaseResource(BaseDanmaku danmaku) |
drawBackground, drawDanmaku, getCacheHeightdrawCache, prepare, setProxypublic void measure(BaseDanmaku danmaku, android.text.TextPaint paint, boolean fromWorkerThread)
BaseCacheStuffermeasure 在类中 SimpleTextCacheStufferpublic void drawStroke(BaseDanmaku danmaku, java.lang.String lineText, android.graphics.Canvas canvas, float left, float top, android.graphics.Paint paint)
drawStroke 在类中 SimpleTextCacheStufferpublic void drawText(BaseDanmaku danmaku, java.lang.String lineText, android.graphics.Canvas canvas, float left, float top, android.text.TextPaint paint, boolean fromWorkerThread)
drawText 在类中 SimpleTextCacheStufferpublic void clearCaches()
BaseCacheStufferclearCaches 在类中 SimpleTextCacheStufferpublic void clearCache(BaseDanmaku danmaku)
clearCache 在类中 BaseCacheStufferpublic void releaseResource(BaseDanmaku danmaku)
releaseResource 在类中 BaseCacheStuffer