本文整理汇总了Java中master.flame.danmaku.danmaku.model.android.DanmakuContext.getDisplayer方法的典型用法代码示例。如果您正苦于以下问题:Java DanmakuContext.getDisplayer方法的具体用法?Java DanmakuContext.getDisplayer怎么用?Java DanmakuContext.getDisplayer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类master.flame.danmaku.danmaku.model.android.DanmakuContext
的用法示例。
在下文中一共展示了DanmakuContext.getDisplayer方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: DrawTask
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public DrawTask(DanmakuTimer timer, DanmakuContext context,
TaskListener taskListener) {
if (context == null) {
throw new IllegalArgumentException("context is null");
}
mContext = context;
mDisp = context.getDisplayer();
mTaskListener = taskListener;
mRenderer = new DanmakuRenderer(context);
mRenderer.setVerifierEnabled(mContext.isPreventOverlappingEnabled() || mContext.isMaxLinesLimited());
initTimer(timer);
Boolean enable = mContext.isDuplicateMergingEnabled();
if (enable != null) {
if(enable) {
mContext.mDanmakuFilters.registerFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
} else {
mContext.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
}
}
}
示例2: DrawTask
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public DrawTask(DanmakuTimer timer, DanmakuContext context, TaskListener taskListener) {
boolean z = false;
if (context == null) {
throw new IllegalArgumentException("context is null");
}
this.mContext = context;
this.mDisp = context.getDisplayer();
this.mTaskListener = taskListener;
this.mRenderer = new DanmakuRenderer(context);
this.mRenderer.setOnDanmakuShownListener(new OnDanmakuShownListener() {
public void onDanmakuShown(BaseDanmaku danmaku) {
if (DrawTask.this.mTaskListener != null) {
DrawTask.this.mTaskListener.onDanmakuShown(danmaku);
}
}
});
IRenderer iRenderer = this.mRenderer;
if (this.mContext.isPreventOverlappingEnabled() || this.mContext.isMaxLinesLimited()) {
z = true;
}
iRenderer.setVerifierEnabled(z);
initTimer(timer);
Boolean enable = Boolean.valueOf(this.mContext.isDuplicateMergingEnabled());
if (enable == null) {
return;
}
if (enable.booleanValue()) {
this.mContext.mDanmakuFilters.registerFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
} else {
this.mContext.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
}
}
示例3: createDanmaku
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public BaseDanmaku createDanmaku(int type, DanmakuContext context) {
if (context == null) {
return null;
}
this.sLastConfig = context;
this.sLastDisp = context.getDisplayer();
return createDanmaku(type, this.sLastDisp.getWidth(), this.sLastDisp.getHeight(), this.CURRENT_DISP_SIZE_FACTOR, context.scrollSpeedFactor);
}
示例4: DrawTask
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public DrawTask(DanmakuTimer timer, DanmakuContext context,
TaskListener taskListener) {
if (context == null) {
throw new IllegalArgumentException("context is null");
}
mContext = context;
mDisp = context.getDisplayer();
mTaskListener = taskListener;
mRenderer = new DanmakuRenderer(context);
mRenderer.setOnDanmakuShownListener(new IRenderer.OnDanmakuShownListener() {
@Override
public void onDanmakuShown(BaseDanmaku danmaku) {
if (mTaskListener != null) {
mTaskListener.onDanmakuShown(danmaku);
}
}
});
mRenderer.setVerifierEnabled(mContext.isPreventOverlappingEnabled() || mContext.isMaxLinesLimited());
initTimer(timer);
Boolean enable = mContext.isDuplicateMergingEnabled();
if (enable != null) {
if(enable) {
mContext.mDanmakuFilters.registerFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
} else {
mContext.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_DUPLICATE_FILTER);
}
}
}
示例5: createDanmaku
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public BaseDanmaku createDanmaku(int type, DanmakuContext context) {
if (context == null)
return null;
sLastConfig = context;
sLastDisp = context.getDisplayer();
return createDanmaku(type, sLastDisp.getWidth(), sLastDisp.getHeight(), CURRENT_DISP_SIZE_FACTOR, context.scrollSpeedFactor);
}
示例6: notifyDispSizeChanged
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public void notifyDispSizeChanged(DanmakuContext context) {
this.sLastConfig = context;
this.sLastDisp = context.getDisplayer();
createDanmaku(1, context);
}
示例7: notifyDispSizeChanged
import master.flame.danmaku.danmaku.model.android.DanmakuContext; //导入方法依赖的package包/类
public void notifyDispSizeChanged(DanmakuContext context) {
sLastConfig = context;
sLastDisp = context.getDisplayer();
createDanmaku(BaseDanmaku.TYPE_SCROLL_RL, context);
}