Modifier and Type | Method and Description |
---|---|
void |
AreaTreeOperator.apply(AreaTree atree,
Area root)
Applies the operation to the given subtree of the tree.
|
void |
OutputDisplay.colorizeByClass(Area area,
java.lang.String cname)
Draws the colorized are bounds.
|
void |
OutputDisplay.colorizeByTags(Area area,
java.util.Set<Tag> s)
Draws the colorized are bounds.
|
void |
OutputDisplay.drawExtent(Area area)
Draws the area bounds at the output display.
|
Modifier and Type | Field and Description |
---|---|
protected Area |
TreeTagger.root |
Modifier and Type | Method and Description |
---|---|
Area |
FeatureExtractor.getTreeRoot()
Obtains the current tree root.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Tagger.allowsContinuation(Area node)
Checks whether the area may be a continuation of a previously started area tagged with this tag.
|
boolean |
TextTag.allowsContinutation(Area node) |
boolean |
Tagger.belongsTo(Area node)
Checks whether the area may be tagged with the tag.
|
java.lang.String |
VisualClassifier.classifyArea(Area area) |
void |
VisualClassifier.classifyTree(Area root,
FeatureExtractor features)
Classifies the areas in an area tree.
|
void |
InstanceExtractor.extractInstances(Area root) |
weka.core.Instance |
FeatureExtractor.getAreaFeatures(Area area,
weka.core.Instances dataset)
Creates a classification data instance from the given area.
|
double |
ColorAnalyzer.getColorPercentage(Area node)
Obtains the average percentage of all the text that has the given color.
|
double |
BackgroundColorAnalyzer.getColorPercentage(Area area)
Obtains the average percentage of the total area that has the same background color as the given area.
|
static java.awt.Color |
BackgroundColorAnalyzer.getEffectiveBackgroundColor(Area area)
Computes the effective (visible) background color of an area considering
transparency and parent areas.
|
protected void |
InstanceExtractor.recursiveExtractInstances(Area root,
weka.core.Instances dest) |
void |
FeatureExtractor.setTree(Area rootNode)
Initializes the extractor to use the tree with the given root node.
|
void |
TreeTagger.tagSingleNode(Area area)
Applies all the taggers to a single tree node.
|
void |
TreeTagger.tagSubtree(Area root)
Applies all the taggers a subtree of the area tree.
|
Constructor and Description |
---|
BackgroundColorAnalyzer(Area root)
Constructs a color analyzer.
|
ColorAnalyzer(Area root)
Constructs a color analyzer.
|
NodeStyle(Area area)
Computes the style of an area node.
|
TreeTagger(Area root) |
Modifier and Type | Method and Description |
---|---|
Area |
ArticleFeatureExtractor.getTreeRoot() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<Tag> |
ArticleFeatureExtractor.getAllTags(Area area)
Obtains all the tags assigned to this area and its child areas (not all descendant areas).
|
weka.core.Instance |
ArticleFeatureExtractor.getAreaFeatures(Area node,
weka.core.Instances dataset) |
double |
ArticleFeatureExtractor.getAverageBoxColorLuminosity(Area area) |
FeatureVector |
ArticleFeatureExtractor.getFeatureVector(Area node) |
double |
ArticleFeatureExtractor.getIndentation(Area node)
Computes the indentation metric.
|
int |
ArticleFeatureExtractor.getLineCount(Area a) |
double |
ArticleFeatureExtractor.getMarkedness(Area node)
Computes the markedness of the area.
|
double |
ArticleFeatureExtractor.getRelY(Area a) |
boolean |
ArticleFeatureExtractor.isCentered(Area area)
Checks whether the area is horizontally centered within its parent area
|
void |
ArticleFeatureExtractor.setTree(Area rootNode) |
Modifier and Type | Method and Description |
---|---|
void |
ClassificationPlugin.areaSelected(Area area) |
Modifier and Type | Method and Description |
---|---|
void |
TagEntitiesOperator.apply(AreaTree atree,
Area root) |
void |
VisualClassificationOperator.apply(AreaTree atree,
Area root) |
Modifier and Type | Method and Description |
---|---|
boolean |
TimeTagger.allowsContinuation(Area node) |
boolean |
PersonsTagger.allowsContinuation(Area node) |
boolean |
LocationsTagger.allowsContinuation(Area node) |
boolean |
DateTagger.allowsContinuation(Area node) |
boolean |
SessionTagger.allowsContinuation(Area node) |
boolean |
TitleTagger.allowsContinuation(Area node) |
boolean |
PagesTagger.allowsContinuation(Area node) |
boolean |
TimeTagger.belongsTo(Area node) |
boolean |
PersonsTagger.belongsTo(Area node) |
boolean |
LocationsTagger.belongsTo(Area node) |
boolean |
DateTagger.belongsTo(Area node) |
boolean |
SessionTagger.belongsTo(Area node) |
boolean |
TitleTagger.belongsTo(Area node) |
boolean |
PagesTagger.belongsTo(Area node) |
protected java.lang.String |
TitleTagger.getText(Area node) |
Modifier and Type | Method and Description |
---|---|
Area |
Browser.getSelectedArea()
Gets the last selected visual area.
|
Modifier and Type | Method and Description |
---|---|
void |
AreaSelectionListener.areaSelected(Area area)
This method is called when the area selection changes in the browser.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultArea
Default generic Area implementation.
|
Modifier and Type | Method and Description |
---|---|
Area |
DefaultArea.createSuperArea(Rectangular gp,
java.util.List<Area> selected,
java.lang.String name) |
Area |
DefaultGridTopology.getArea() |
Area |
DefaultLogicalArea.getFirstArea() |
Area |
DefaultArea.getChildArea(int index) |
Area |
DefaultArea.getNextOnLine() |
Area |
DefaultGridTopology.getNextOnLine() |
Area |
DefaultArea.getNextSibling() |
Area |
DefaultArea.getParentArea() |
Area |
DefaultArea.getPreviousOnLine() |
Area |
DefaultGridTopology.getPreviousOnLine() |
Area |
DefaultArea.getPreviousSibling() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Area> |
DefaultLogicalArea.getAreas() |
java.util.List<Area> |
DefaultArea.getChildAreas() |
Modifier and Type | Method and Description |
---|---|
void |
DefaultLogicalArea.addArea(Area a) |
void |
DefaultArea.appendChild(Area child) |
LogicalArea |
DefaultLogicalArea.findArea(Area area) |
int |
DefaultArea.getIndex(Area child) |
void |
DefaultArea.insertChild(Area child,
int index) |
void |
DefaultArea.removeChild(Area child) |
void |
DefaultArea.setNextOnLine(Area nextOnLine) |
void |
DefaultArea.setPreviousOnLine(Area previousOnLine) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultArea.appendChildren(java.util.List<Area> list) |
Area |
DefaultArea.createSuperArea(Rectangular gp,
java.util.List<Area> selected,
java.lang.String name) |
Constructor and Description |
---|
DefaultLogicalArea(Area src) |
DefaultLogicalArea(Area src,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
protected LayoutAnalyzer.TableInfo |
LayoutAnalyzer.collectTableStats(Area parent,
java.util.List<Area> nodes,
int startchild,
boolean check) |
protected void |
LogicalTreeBuilder.computeAreaMarkedness(Area root)
Recomputes the markedness in all the nodes of an area tree.
|
LayoutAnalyzer.LayoutType |
LayoutAnalyzer.detectLayoutType(Area area)
Detects the layout type of the given area.
|
LogicalArea |
LogicalAreaImpl.findArea(Area area) |
int |
LayoutAnalyzer.findListEnd(Area area,
java.util.List<Area> nodes,
int startchild)
If a list starts at the specified child index of the area, tries to detect
the end of the list.
|
int |
LayoutAnalyzer.findTableEnd(Area area,
java.util.List<Area> nodes,
int startchild)
If a table starts at the specified child index of the area, tries to detect
the end of the table.
|
protected boolean |
LayoutAnalyzer.isList(Area area,
java.util.List<Area> nodes,
int startchild) |
protected boolean |
LayoutAnalyzer.isTable(Area area,
java.util.List<Area> nodes,
int startchild) |
protected LogicalAreaImpl |
LogicalTreeBuilder.recursiveCreateLogicalStructure(Area src)
Creates the logical structure tree from the source area tree recursively.
|
Modifier and Type | Method and Description |
---|---|
protected LayoutAnalyzer.TableInfo |
LayoutAnalyzer.collectTableStats(Area parent,
java.util.List<Area> nodes,
int startchild,
boolean check) |
int |
LayoutAnalyzer.findListEnd(Area area,
java.util.List<Area> nodes,
int startchild)
If a list starts at the specified child index of the area, tries to detect
the end of the list.
|
int |
LayoutAnalyzer.findTableEnd(Area area,
java.util.List<Area> nodes,
int startchild)
If a table starts at the specified child index of the area, tries to detect
the end of the table.
|
protected boolean |
LayoutAnalyzer.isList(Area area,
java.util.List<Area> nodes,
int startchild) |
protected boolean |
LayoutAnalyzer.isTable(Area area,
java.util.List<Area> nodes,
int startchild) |
Constructor and Description |
---|
LogicalAreaImpl(Area src) |
Modifier and Type | Method and Description |
---|---|
void |
LogicalStructurePlugin.areaSelected(Area area) |
Modifier and Type | Method and Description |
---|---|
void |
LayoutSplitOperator.apply(AreaTree atree,
Area root) |
Modifier and Type | Method and Description |
---|---|
Area |
Area.createSuperArea(Rectangular gp,
java.util.List<Area> selected,
java.lang.String name)
Creates a new subarea from a specified region of the area and moves the selected child
nodes to the new area.
|
Area |
SearchableAreaContainer.getAreaAt(int x,
int y)
Finds the bottom-most area node present at the given coordinates in the area tree.
|
Area |
SearchableAreaContainer.getAreaByName(java.lang.String name)
Finds an area by the given name.
|
Area |
LogicalArea.getFirstArea() |
Area |
AreaTopology.getNextOnLine() |
Area |
AreaTopology.getPreviousOnLine() |
Area |
AreaTree.getRoot()
Obtains the root node of the area tree.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Area> |
LogicalArea.getAreas() |
Modifier and Type | Method and Description |
---|---|
void |
LogicalArea.addArea(Area a) |
LogicalArea |
LogicalArea.findArea(Area area)
Scans a logical area subtree rooted in this logical area for the given area.
|
Modifier and Type | Method and Description |
---|---|
Area |
Area.createSuperArea(Rectangular gp,
java.util.List<Area> selected,
java.lang.String name)
Creates a new subarea from a specified region of the area and moves the selected child
nodes to the new area.
|
Modifier and Type | Method and Description |
---|---|
Area |
BlockBrowser.getSelectedArea() |
Modifier and Type | Method and Description |
---|---|
void |
OutputDisplayImpl.colorizeByClass(Area area,
java.lang.String cname) |
void |
OutputDisplayImpl.colorizeByTags(Area area,
java.util.Set<Tag> s) |
void |
OutputDisplayImpl.drawExtent(Area area) |
void |
BlockBrowser.showAreas(Area root,
java.lang.String name) |
Constructor and Description |
---|
AreaTreeModel(Area root) |
Modifier and Type | Method and Description |
---|---|
void |
XMLOutputOperator.apply(AreaTree atree,
Area root) |
Modifier and Type | Class and Description |
---|---|
class |
AreaImpl
An area containing several visual boxes.
|
Modifier and Type | Method and Description |
---|---|
Area |
AreaImpl.createSuperArea(Rectangular gp,
java.util.List<Area> selected,
java.lang.String name) |
static Area |
AreaUtils.createSuperAreaFromVerticalRegion(Area root,
Rectangular region) |
Area |
SegmentationAreaTree.findBasicAreas()
Creates the area tree skeleton - selects the visible boxes and converts
them to areas
|
Area |
SegmentationAreaTree.getAreaAt(int x,
int y) |
Area |
SegmentationAreaTree.getAreaByName(java.lang.String name) |
Area |
SegmentationAreaTree.getRoot() |
Modifier and Type | Method and Description |
---|---|
void |
AreaImpl.appendChild(Area child) |
static Area |
AreaUtils.createSuperAreaFromVerticalRegion(Area root,
Rectangular region) |
static boolean |
AreaUtils.isAligned(Area a1,
Area a2)
Checks if the given areas are aligned in row or column.
|
static boolean |
AreaUtils.isInSameColumn(Area a1,
Area a2)
Checks if the given areas are in the same column.
|
static boolean |
AreaUtils.isLink(Area a)
Checks if the given area has a target URL assigned (it acts as a link)
|
static boolean |
AreaUtils.isNeighbor(Area a1,
Area a2)
Checks if the given areas are in the same visual group (i.e.
|
static boolean |
AreaUtils.isOnSameLine(Area a1,
Area a2)
Checks if the given areas are on the same line.
|
static boolean |
AreaUtils.isOnSameLine(Area a1,
Area a2,
int threshold)
Checks if the given areas are on the same line.
|
static boolean |
AreaUtils.isOnSameLineRoughly(Area a1,
Area a2) |
Modifier and Type | Method and Description |
---|---|
void |
AreaImpl.appendChildren(java.util.List<Area> list) |
Area |
AreaImpl.createSuperArea(Rectangular gp,
java.util.List<Area> selected,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
SegmentatorPlugin.areaSelected(Area area) |
Modifier and Type | Method and Description |
---|---|
void |
MultiLineOperator.apply(AreaTree atree,
Area root) |
void |
CollapseAreasOperator.apply(AreaTree atree,
Area root) |
void |
HomogeneousLeafOperator.apply(AreaTree atree,
Area root) |
void |
SortByPositionOperator.apply(AreaTree atree,
Area root) |
void |
SuperAreaOperator.apply(AreaTree atree,
Area root) |
void |
FindLineOperator.apply(AreaTree atree,
Area root) |
void |
SortByLinesOperator.apply(AreaTree atree,
Area root) |
protected abstract void |
SeparatorSet.findSeparators(AreaImpl area,
Area filter)
Finds the horizontal and vertical list of separators
|
protected void |
SeparatorSetHVS.findSeparators(AreaImpl area,
Area filter)
Finds the horizontal and vertical list of separators
|
protected void |
SortByPositionOperator.recursivelySortChildAreas(Area root,
boolean columnFirst) |
Constructor and Description |
---|
SeparatorSet(AreaImpl root,
Area filter)
Creates a new separator set with one horizontal and one vertical separator.
|
SeparatorSetHVS(AreaImpl root,
Area filter)
Creates a new separator set with one horizontal and one vertical separator.
|