• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DanmakuFilters类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中master.flame.danmaku.controller.DanmakuFilters的典型用法代码示例。如果您正苦于以下问题:Java DanmakuFilters类的具体用法?Java DanmakuFilters怎么用?Java DanmakuFilters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DanmakuFilters类属于master.flame.danmaku.controller包,在下文中一共展示了DanmakuFilters类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setMaximumVisibleSizeInScreen

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setMaximumVisibleSizeInScreen(int maxSize) {
    this.maximumNumsInScreen = maxSize;
    if (maxSize == 100) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER);
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_ELAPSED_TIME_FILTER);
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, Integer.valueOf(maxSize));
    } else if (maxSize == -1) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER);
        this.mDanmakuFilters.registerFilter(DanmakuFilters.TAG_ELAPSED_TIME_FILTER);
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, Integer.valueOf(maxSize));
    } else {
        setFilterData(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER, Integer.valueOf(maxSize));
        this.mGlobalFlagValues.updateFilterFlag();
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, Integer.valueOf(maxSize));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:18,代码来源:DanmakuContext.java


示例2: setMaximumVisibleSizeInScreen

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
/**
 * 设置同屏弹幕密度 -1自动 0无限制
 * 
 * @param maxSize
 * @return
 */
public DanmakuContext setMaximumVisibleSizeInScreen(int maxSize) {
    maximumNumsInScreen = maxSize;
    // 无限制
    if (maxSize == 0) {
        mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER);
        mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_ELAPSED_TIME_FILTER);
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, maxSize);
        return this;
    }
    // 自动调整
    if (maxSize == -1) {
        mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER);
        mDanmakuFilters.registerFilter(DanmakuFilters.TAG_ELAPSED_TIME_FILTER);
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, maxSize);
        return this;
    }
    setFilterData(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER, maxSize);
    mGlobalFlagValues.updateFilterFlag();
    notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, maxSize);
    return this;
}
 
开发者ID:lisnstatic,项目名称:live_master,代码行数:28,代码来源:DanmakuContext.java


示例3: setMaximumVisibleSizeInScreen

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
/**
 * 设置同屏弹幕密度 -1自动 0无限制
 * 
 * @param maxSize
 * @return
 */
public DanmakuGlobalConfig setMaximumVisibleSizeInScreen(int maxSize) {
    maximumNumsInScreen = maxSize;
    // 无限制
    if (maxSize == 0) {
        DanmakuFilters.getDefault()
                .unregisterFilter(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER);
        DanmakuFilters.getDefault().unregisterFilter(DanmakuFilters.TAG_ELAPSED_TIME_FILTER);
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, maxSize);
        return this;
    }
    // 自动调整
    if (maxSize == -1) {
        DanmakuFilters.getDefault()
                .unregisterFilter(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER);
        DanmakuFilters.getDefault()
                .registerFilter(DanmakuFilters.TAG_ELAPSED_TIME_FILTER);
        notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, maxSize);
        return this;
    }
    setFilterData(DanmakuFilters.TAG_QUANTITY_DANMAKU_FILTER, maxSize);
    notifyConfigureChanged(DanmakuConfigTag.MAXIMUM_NUMS_IN_SCREEN, maxSize);
    return this;
}
 
开发者ID:jiangerji,项目名称:danmaku-project,代码行数:30,代码来源:DanmakuGlobalConfig.java


示例4: setFTDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setFTDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, 5);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, this.mFilterTypes);
    this.mGlobalFlagValues.updateFilterFlag();
    if (this.FTDanmakuVisibility != visible) {
        this.FTDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.FT_DANMAKU_VISIBILITY, Boolean.valueOf(visible));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:DanmakuContext.java


示例5: setFBDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setFBDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, 4);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, this.mFilterTypes);
    this.mGlobalFlagValues.updateFilterFlag();
    if (this.FBDanmakuVisibility != visible) {
        this.FBDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.FB_DANMAKU_VISIBILITY, Boolean.valueOf(visible));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:DanmakuContext.java


示例6: setL2RDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setL2RDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, 6);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, this.mFilterTypes);
    this.mGlobalFlagValues.updateFilterFlag();
    if (this.L2RDanmakuVisibility != visible) {
        this.L2RDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.L2R_DANMAKU_VISIBILITY, Boolean.valueOf(visible));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:DanmakuContext.java


示例7: setR2LDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setR2LDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, 1);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, this.mFilterTypes);
    this.mGlobalFlagValues.updateFilterFlag();
    if (this.R2LDanmakuVisibility != visible) {
        this.R2LDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.R2L_DANMAKU_VISIBILIY, Boolean.valueOf(visible));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:DanmakuContext.java


示例8: setSpecialDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setSpecialDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, 7);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, this.mFilterTypes);
    this.mGlobalFlagValues.updateFilterFlag();
    if (this.SecialDanmakuVisibility != visible) {
        this.SecialDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.SPECIAL_DANMAKU_VISIBILITY, Boolean.valueOf(visible));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:11,代码来源:DanmakuContext.java


示例9: setColorValueWhiteList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setColorValueWhiteList(Integer... colors) {
    this.mColorValueWhiteList.clear();
    if (colors == null || colors.length == 0) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_TEXT_COLOR_DANMAKU_FILTER);
    } else {
        Collections.addAll(this.mColorValueWhiteList, colors);
        setFilterData(DanmakuFilters.TAG_TEXT_COLOR_DANMAKU_FILTER, this.mColorValueWhiteList);
    }
    this.mGlobalFlagValues.updateFilterFlag();
    notifyConfigureChanged(DanmakuConfigTag.COLOR_VALUE_WHITE_LIST, this.mColorValueWhiteList);
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:DanmakuContext.java


示例10: setUserHashBlackList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setUserHashBlackList(String... hashes) {
    this.mUserHashBlackList.clear();
    if (hashes == null || hashes.length == 0) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_USER_HASH_FILTER);
    } else {
        Collections.addAll(this.mUserHashBlackList, hashes);
        setFilterData(DanmakuFilters.TAG_USER_HASH_FILTER, this.mUserHashBlackList);
    }
    this.mGlobalFlagValues.updateFilterFlag();
    notifyConfigureChanged(DanmakuConfigTag.USER_HASH_BLACK_LIST, this.mUserHashBlackList);
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:DanmakuContext.java


示例11: removeUserHashBlackList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext removeUserHashBlackList(String... hashes) {
    if (!(hashes == null || hashes.length == 0)) {
        for (String hash : hashes) {
            this.mUserHashBlackList.remove(hash);
        }
        setFilterData(DanmakuFilters.TAG_USER_HASH_FILTER, this.mUserHashBlackList);
        this.mGlobalFlagValues.updateFilterFlag();
        notifyConfigureChanged(DanmakuConfigTag.USER_HASH_BLACK_LIST, this.mUserHashBlackList);
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:12,代码来源:DanmakuContext.java


示例12: addUserHashBlackList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext addUserHashBlackList(String... hashes) {
    if (!(hashes == null || hashes.length == 0)) {
        Collections.addAll(this.mUserHashBlackList, hashes);
        setFilterData(DanmakuFilters.TAG_USER_HASH_FILTER, this.mUserHashBlackList);
        this.mGlobalFlagValues.updateFilterFlag();
        notifyConfigureChanged(DanmakuConfigTag.USER_HASH_BLACK_LIST, this.mUserHashBlackList);
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:10,代码来源:DanmakuContext.java


示例13: setUserIdBlackList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setUserIdBlackList(Integer... ids) {
    this.mUserIdBlackList.clear();
    if (ids == null || ids.length == 0) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_USER_ID_FILTER);
    } else {
        Collections.addAll(this.mUserIdBlackList, ids);
        setFilterData(DanmakuFilters.TAG_USER_ID_FILTER, this.mUserIdBlackList);
    }
    this.mGlobalFlagValues.updateFilterFlag();
    notifyConfigureChanged(DanmakuConfigTag.USER_ID_BLACK_LIST, this.mUserIdBlackList);
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:13,代码来源:DanmakuContext.java


示例14: removeUserIdBlackList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext removeUserIdBlackList(Integer... ids) {
    if (!(ids == null || ids.length == 0)) {
        for (Integer id : ids) {
            this.mUserIdBlackList.remove(id);
        }
        setFilterData(DanmakuFilters.TAG_USER_ID_FILTER, this.mUserIdBlackList);
        this.mGlobalFlagValues.updateFilterFlag();
        notifyConfigureChanged(DanmakuConfigTag.USER_ID_BLACK_LIST, this.mUserIdBlackList);
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:12,代码来源:DanmakuContext.java


示例15: addUserIdBlackList

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext addUserIdBlackList(Integer... ids) {
    if (!(ids == null || ids.length == 0)) {
        Collections.addAll(this.mUserIdBlackList, ids);
        setFilterData(DanmakuFilters.TAG_USER_ID_FILTER, this.mUserIdBlackList);
        this.mGlobalFlagValues.updateFilterFlag();
        notifyConfigureChanged(DanmakuConfigTag.USER_ID_BLACK_LIST, this.mUserIdBlackList);
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:10,代码来源:DanmakuContext.java


示例16: blockGuestDanmaku

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext blockGuestDanmaku(boolean block) {
    if (this.mBlockGuestDanmaku != block) {
        this.mBlockGuestDanmaku = block;
        if (block) {
            setFilterData(DanmakuFilters.TAG_GUEST_FILTER, Boolean.valueOf(block));
        } else {
            this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_GUEST_FILTER);
        }
        this.mGlobalFlagValues.updateFilterFlag();
        notifyConfigureChanged(DanmakuConfigTag.BLOCK_GUEST_DANMAKU, Boolean.valueOf(block));
    }
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:14,代码来源:DanmakuContext.java


示例17: setMaximumLines

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext setMaximumLines(Map<Integer, Integer> pairs) {
    this.mIsMaxLinesLimited = pairs != null;
    if (pairs == null) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_MAXIMUN_LINES_FILTER, false);
    } else {
        setFilterData(DanmakuFilters.TAG_MAXIMUN_LINES_FILTER, pairs, false);
    }
    this.mGlobalFlagValues.updateFilterFlag();
    notifyConfigureChanged(DanmakuConfigTag.MAXIMUN_LINES, pairs);
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:12,代码来源:DanmakuContext.java


示例18: preventOverlapping

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
public DanmakuContext preventOverlapping(Map<Integer, Boolean> pairs) {
    this.mIsPreventOverlappingEnabled = pairs != null;
    if (pairs == null) {
        this.mDanmakuFilters.unregisterFilter(DanmakuFilters.TAG_OVERLAPPING_FILTER, false);
    } else {
        setFilterData(DanmakuFilters.TAG_OVERLAPPING_FILTER, pairs, false);
    }
    this.mGlobalFlagValues.updateFilterFlag();
    notifyConfigureChanged(DanmakuConfigTag.OVERLAPPING_ENABLE, pairs);
    return this;
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:12,代码来源:DanmakuContext.java


示例19: setFTDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
/**
 * 设置是否显示顶部弹幕
 * 
 * @param visible
 */
public DanmakuContext setFTDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, BaseDanmaku.TYPE_FIX_TOP);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, mFilterTypes);
    mGlobalFlagValues.updateFilterFlag();
    if (FTDanmakuVisibility != visible) {
        FTDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.FT_DANMAKU_VISIBILITY, visible);
    }
    return this;
}
 
开发者ID:lisnstatic,项目名称:live_master,代码行数:16,代码来源:DanmakuContext.java


示例20: setFBDanmakuVisibility

import master.flame.danmaku.controller.DanmakuFilters; //导入依赖的package包/类
/**
 * 设置是否显示底部弹幕
 * 
 * @param visible
 */
public DanmakuContext setFBDanmakuVisibility(boolean visible) {
    setDanmakuVisible(visible, BaseDanmaku.TYPE_FIX_BOTTOM);
    setFilterData(DanmakuFilters.TAG_TYPE_DANMAKU_FILTER, mFilterTypes);
    mGlobalFlagValues.updateFilterFlag();
    if (FBDanmakuVisibility != visible) {
        FBDanmakuVisibility = visible;
        notifyConfigureChanged(DanmakuConfigTag.FB_DANMAKU_VISIBILITY, visible);
    }
    return this;
}
 
开发者ID:lisnstatic,项目名称:live_master,代码行数:16,代码来源:DanmakuContext.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IpPrefix类代码示例发布时间:2022-05-22
下一篇:
Java JIObjectFactory类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap