本文整理汇总了Java中com.rapidminer.gui.tools.CamelCaseFilter类的典型用法代码示例。如果您正苦于以下问题:Java CamelCaseFilter类的具体用法?Java CamelCaseFilter怎么用?Java CamelCaseFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
CamelCaseFilter类属于com.rapidminer.gui.tools包,在下文中一共展示了CamelCaseFilter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateTree
import com.rapidminer.gui.tools.CamelCaseFilter; //导入依赖的package包/类
public List<TreePath> updateTree() {
// int hits = Integer.MAX_VALUE;
GroupTree filteredTree = this.completeTree.clone();
if (!"true".equals(System.getProperty(RapidMiner.PROPERTY_DEVELOPER_MODE))) {
removeDeprecatedGroup(filteredTree);
}
List<TreePath> expandedPaths = new LinkedList<>();
if (filter != null && filter.trim().length() > 0) {
CamelCaseFilter ccFilter = new CamelCaseFilter(filter);
removeFilteredInstances(ccFilter, filteredTree, expandedPaths, new TreePath(getRoot()));
}
if (filterDeprecated) {
removeDeprecated(filteredTree);
}
this.displayedTree = filteredTree;
if (sortByUsage) {
filteredTree.sort(new UsageStatsComparator());
}
fireCompleteTreeChanged(this);
return expandedPaths;
}
示例2: updateTree
import com.rapidminer.gui.tools.CamelCaseFilter; //导入依赖的package包/类
public int updateTree() {
int hits = Integer.MAX_VALUE;
GroupTree filteredTree = this.completeTree.clone();
if (!"true".equals(System.getProperty(RapidMiner.PROPERTY_DEVELOPER_MODE))) {
removeDeprecatedGroup(filteredTree);
}
if (filter != null && filter.trim().length() > 0) {
CamelCaseFilter ccFilter = new CamelCaseFilter(filter);
hits = removeFilteredInstances(ccFilter, filteredTree);
}
if (filterDeprecated) {
hits = removeDeprecated(filteredTree);
}
this.displayedTree = filteredTree;
if (sortByUsage) {
filteredTree.sort(new UsageStatsComparator());
}
fireCompleteTreeChanged(this);
return hits;
}
示例3: updateTree
import com.rapidminer.gui.tools.CamelCaseFilter; //导入依赖的package包/类
public List<TreePath> updateTree() {
GroupTree filteredTree = restoreTree();
List<TreePath> expandedPaths = new LinkedList<>();
if (filter != null && filter.trim().length() > 0) {
int hits = 0;
String[] terms = filter.trim().split(SEARCH_TERM_DELIMITER, MAX_SEARCH_TERMS);
if (terms.length > 1) {
Arrays.setAll(terms, i -> terms[i].toLowerCase());
hits = removeFilteredInstances(terms, filteredTree, expandedPaths, new TreePath(getRoot()));
}
// If we couldn't find anything, restore the tree and try the CamelCase search
if (hits == 0) {
filteredTree = restoreTree();
OperatorFilter ccFilter = new CamelCaseFilter(filter);
hits = removeFilteredInstances(ccFilter, filteredTree, expandedPaths, new TreePath(getRoot()));
}
// If we still couldn't find anything, restore the tree and try the typo search
if (hits == 0) {
filteredTree = restoreTree();
OperatorFilter cctFilter = new CamelCaseTypoFilter(filter);
removeFilteredInstances(cctFilter, filteredTree, expandedPaths, new TreePath(getRoot()));
}
}
if (filterDeprecated) {
removeDeprecated(filteredTree);
}
this.displayedTree = filteredTree;
filteredTree.sort(priorityComparator);
if (sortByUsage) {
filteredTree.sort(usageComparator);
}
fireCompleteTreeChanged(this);
return expandedPaths;
}