本文整理汇总了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();
}
示例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();
}
示例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)) { }
}
示例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();
}
示例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);
}
示例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();
}
示例7: areaTreeUpdated
import org.fit.layout.model.AreaTree; //导入依赖的package包/类
@Override
public void areaTreeUpdated(AreaTree tree)
{
tagsChanged = false;
updateGUI();
}