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


Java AreaTree类代码示例

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


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

示例1: apply

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void apply(AreaTree atree, Area root)
{
    recursiveJoinSeparators(root);
    recursiveSplitCrossingSeparators(root);
    atree.updateTopologies();
}
 
开发者ID:FitLayout,项目名称:PDFAnalyzer,代码行数:8,代码来源:NormalizeSeparatorsOperator.java

示例2: apply

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void apply(AreaTree atree, Area root)
{
    covering = new HashMap<Area, List<Area>>();
    recursiveMapSeparators((AreaImpl) root);
    sortCoverings();
    for (Area sep : covering.keySet())
    {
        boolean covered = checkCovering(sep);
        if (covered && removeMapped)
            removeSeparator(sep);
    }
    atree.updateTopologies();
}
 
开发者ID:FitLayout,项目名称:PDFAnalyzer,代码行数:15,代码来源:RemapSeparatorsOperator.java

示例3: apply

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void apply(AreaTree atree, Area root)
{
    List<SepPair> pairs = findSeparatorPairs(root);
    System.out.println("Sep pairs:");
    for (SepPair pair : pairs)
        System.out.println("  " + pair);
    /*System.out.println("Incomplete:");
    for (SepPair pair : pairs)
        if (!pair.isComplete())
            System.out.println("  " + pair);*/
    List<Area> newAreas = createAreasFromPairs(pairs);
    while (findJoinableAreas(newAreas)) { }
}
 
开发者ID:FitLayout,项目名称:PDFAnalyzer,代码行数:15,代码来源:SeparatorPairsOperator.java

示例4: apply

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void apply(AreaTree atree, Area root)
{
    tagger = new TreeTagger(root);
    for (Tagger t : usedTaggers)
        tagger.addTagger(t);
    tagger.tagTree();
}
 
开发者ID:FitLayout,项目名称:classify,代码行数:9,代码来源:TagEntitiesOperator.java

示例5: apply

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void apply(AreaTree atree, Area root)
{
    //visual features
    features.setTree(root);
    System.out.println("SETTING ROOT");
    //create and train classifier
    vcls = new VisualClassifier(trainFile, classIndex);
    vcls.classifyTree(root, features);
    //add tags based on the classification
    recursivelyAddTags(root);
}
 
开发者ID:FitLayout,项目名称:classify,代码行数:13,代码来源:VisualClassificationOperator.java

示例6: apply

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void apply(AreaTree atree, Area root)
{
    //reset counters
    tp = fp = tn = fn = 0;
    //traverse the tree
    recursiveCheckAreas(root);
    printStatistics();
}
 
开发者ID:FitLayout,项目名称:classify,代码行数:10,代码来源:CompareTagsOperator.java

示例7: areaTreeUpdated

import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void areaTreeUpdated(AreaTree tree)
{
    tagsChanged = false;
    updateGUI();
}
 
开发者ID:FitLayout,项目名称:classify,代码行数:7,代码来源:AnnotatorPlugin.java


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