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)
draw the danmaku-stroke on canvas with the given params
|
void |
drawText(BaseDanmaku danmaku,
java.lang.String lineText,
android.graphics.Canvas canvas,
float left,
float top,
android.text.TextPaint paint,
boolean fromWorkerThread)
draw the danmaku-text on canvas with the given params
|
void |
measure(BaseDanmaku danmaku,
android.text.TextPaint paint,
boolean fromWorkerThread)
set paintWidth, paintHeight to danmaku
|
void |
releaseResource(BaseDanmaku danmaku) |
drawBackground, getCacheHeightsetProxypublic 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)
BaseCacheStufferdrawStroke 在类中 SimpleTextCacheStufferpublic void drawText(BaseDanmaku danmaku, java.lang.String lineText, android.graphics.Canvas canvas, float left, float top, android.text.TextPaint paint, boolean fromWorkerThread)
BaseCacheStufferdrawText 在类中 SimpleTextCacheStufferpublic void clearCaches()
BaseCacheStufferclearCaches 在类中 SimpleTextCacheStufferpublic void clearCache(BaseDanmaku danmaku)
clearCache 在类中 BaseCacheStufferpublic void releaseResource(BaseDanmaku danmaku)
releaseResource 在类中 BaseCacheStuffer