public class SimpleTextCacheStuffer extends BaseCacheStuffer
BaseCacheStuffer.ProxymProxy| 构造器和说明 |
|---|
SimpleTextCacheStuffer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearCaches()
clear caches which created by this stuffer
|
void |
drawBackground(BaseDanmaku danmaku,
android.graphics.Canvas canvas,
float left,
float top)
draw the background in rect (left, top, left + danmaku.paintWidth, top + danmaku.paintHeight)
|
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
|
protected java.lang.Float |
getCacheHeight(BaseDanmaku danmaku,
android.graphics.Paint paint) |
void |
measure(BaseDanmaku danmaku,
android.text.TextPaint paint,
boolean fromWorkerThread)
set paintWidth, paintHeight to danmaku
|
clearCache, releaseResource, setProxyprotected java.lang.Float getCacheHeight(BaseDanmaku danmaku, android.graphics.Paint paint)
public void measure(BaseDanmaku danmaku, android.text.TextPaint paint, boolean fromWorkerThread)
BaseCacheStuffermeasure 在类中 BaseCacheStufferpublic void drawStroke(BaseDanmaku danmaku, java.lang.String lineText, android.graphics.Canvas canvas, float left, float top, android.graphics.Paint paint)
BaseCacheStufferdrawStroke 在类中 BaseCacheStufferpublic void drawText(BaseDanmaku danmaku, java.lang.String lineText, android.graphics.Canvas canvas, float left, float top, android.text.TextPaint paint, boolean fromWorkerThread)
BaseCacheStufferdrawText 在类中 BaseCacheStufferpublic void clearCaches()
BaseCacheStufferclearCaches 在类中 BaseCacheStufferpublic void drawBackground(BaseDanmaku danmaku, android.graphics.Canvas canvas, float left, float top)
BaseCacheStufferdrawBackground 在类中 BaseCacheStuffer