当前位置: 首页>>代码示例>>Java>>正文


Java DanmakuContext.getDisplayer方法代码示例

本文整理汇总了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);
        }
    }
}
 
开发者ID:liucloo,项目名称:ijkPlayer-Danmaku,代码行数:21,代码来源:DrawTask.java

示例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);
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:33,代码来源:DrawTask.java

示例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);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:9,代码来源:DanmakuFactory.java

示例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);
        }
    }
}
 
开发者ID:lisnstatic,项目名称:live_master,代码行数:30,代码来源:DrawTask.java

示例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);
}
 
开发者ID:liucloo,项目名称:ijkPlayer-Danmaku,代码行数:8,代码来源:DanmakuFactory.java

示例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);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:6,代码来源:DanmakuFactory.java

示例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);
}
 
开发者ID:liucloo,项目名称:ijkPlayer-Danmaku,代码行数:6,代码来源:DanmakuFactory.java


注:本文中的master.flame.danmaku.danmaku.model.android.DanmakuContext.getDisplayer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。