public class SegmentationAreaTree
extends org.fit.layout.impl.DefaultAreaTree
| Constructor and Description |
|---|
SegmentationAreaTree(org.fit.layout.model.Page srcpage,
boolean preserveAuxAreas)
Create a new tree of areas by the analysis of a box tree
|
| Modifier and Type | Method and Description |
|---|---|
org.fit.layout.model.Area |
createArea(org.fit.layout.model.Box box) |
org.fit.layout.model.Area |
createArea(List<org.fit.layout.model.Box> boxes) |
org.fit.layout.model.Area |
createArea(org.fit.layout.model.Rectangular r) |
protected void |
createGrids(AreaImpl root)
Goes through all the areas in the tree and creates the grids in these areas
|
org.fit.layout.model.Area |
findBasicAreas()
Creates the area tree skeleton - selects the visible boxes and converts
them to areas
|
Set<org.fit.layout.model.Tag> |
getUsedTags()
Obtains all the tags that are really used in the tree.
|
boolean |
isVisuallySeparated(org.fit.layout.model.Box box) |
void |
updateTopologies() |
public SegmentationAreaTree(org.fit.layout.model.Page srcpage,
boolean preserveAuxAreas)
srcpage - the source box treepreserveAuxAreas - preserve the auxiliary areas that are not visually separated but
they are used as containers containing other ares.public org.fit.layout.model.Area findBasicAreas()
public org.fit.layout.model.Area createArea(org.fit.layout.model.Rectangular r)
createArea in interface org.fit.layout.model.AreaTreecreateArea in class org.fit.layout.impl.DefaultAreaTreepublic org.fit.layout.model.Area createArea(org.fit.layout.model.Box box)
createArea in interface org.fit.layout.model.AreaTreecreateArea in class org.fit.layout.impl.DefaultAreaTreepublic org.fit.layout.model.Area createArea(List<org.fit.layout.model.Box> boxes)
createArea in interface org.fit.layout.model.AreaTreecreateArea in class org.fit.layout.impl.DefaultAreaTreepublic void updateTopologies()
updateTopologies in interface org.fit.layout.model.AreaTreeupdateTopologies in class org.fit.layout.impl.DefaultAreaTreeprotected void createGrids(AreaImpl root)
root - the root node of the tree of areaspublic boolean isVisuallySeparated(org.fit.layout.model.Box box)
public Set<org.fit.layout.model.Tag> getUsedTags()
Copyright © 2016. All rights reserved.