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


Java DanmakuFilters类代码示例

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


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


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