public interface Area extends ContentRect, AreaTreeNode<Area>, Taggable
| Modifier and Type | Method and Description |
|---|---|
Area |
copy()
Creates a copy of the area and makes it a next sibling of the source area.
|
Area |
createSuperArea(Rectangular gp,
List<Area> selected,
String name)
Creates a new subarea from a specified region of the area and moves the selected child
nodes to the new area.
|
Vector<Box> |
getAllBoxes()
Obtains all the boxes from this area and all the child areas.
|
AreaTree |
getAreaTree()
Obtains the tree the node belongs to.
|
Vector<Box> |
getBoxes()
Returns the list of boxes that belong directly to this area.
|
Color |
getEffectiveBackgroundColor()
Obtains the effective background color visible under the area.
|
String |
getName()
Obtains the area name.
|
String |
getText()
Returns the complete text contained in this area and its sub area.
|
String |
getText(String separator)
Returns the complete text contained in this area and its sub area.
|
AreaTopology |
getTopology()
Returns the topology of this area.
|
void |
insertParent(Area newParent,
Area child)
Inserts a new area as a new parent of the given child area.
|
boolean |
isHorizontalSeparator()
Checks whether the area can be interpreted as a horizontal separator.
|
boolean |
isReplaced()
Checks whether this area is formed by replaced boxes.
|
boolean |
isSeparator()
Checks whether the area can be interpreted as any kind of separator.
|
boolean |
isVerticalSeparator()
Checks whether the area can be interpreted as a vertical separator.
|
void |
setName(String name)
Sets the name of the area that may be later used for its identification using
getName(). |
void |
updateTopologies()
Updates the topologies of the child areas.
|
getBackgroundColor, getBorderCount, getBorderStyle, getBottomBorder, getBounds, getFontSize, getFontStyle, getFontWeight, getId, getLeftBorder, getLineThrough, getPage, getRightBorder, getTopBorder, getUnderline, hasBottomBorder, hasLeftBorder, hasRightBorder, hasTopBorder, isBackgroundSeparatedgetHeight, getWidth, getX1, getX2, getY1, getY2, moveaddUserAttribute, appendChild, appendChildren, getDepth, getChildArea, getChildAreas, getChildCount, getIndex, getLeafCount, getNextSibling, getParentArea, getPreviousSibling, getUserAttribute, insertChild, isAncestorOf, isLeaf, removeAllChildren, removeChildaddTag, getMostSupportedTag, getSupportedTags, getTags, getTagSupport, hasTag, hasTag, removeTagvoid setName(String name)
getName().name - the name to be setString getName()
setName(String) or a default name when nothing has been previously set.AreaTree getAreaTree()
null when the node does not form part of any tree.Vector<Box> getBoxes()
Vector<Box> getAllBoxes()
String getText()
String getText(String separator)
separator - the string separating the individual areasboolean isReplaced()
true if the area contains replaced boxes onlyAreaTopology getTopology()
void updateTopologies()
Color getEffectiveBackgroundColor()
boolean isHorizontalSeparator()
true when this area is a horizontal separatorboolean isVerticalSeparator()
true when this area is a vertical separatorboolean isSeparator()
true when this area is a separatorArea createSuperArea(Rectangular gp, List<Area> selected, String name)
gp - the subarea boundsselected - nodes to be moved to the new areaname - the name (identification) of the new areavoid insertParent(Area newParent, Area child)
newParent - the new parent area (replacement)child - the child area that should be replacedArea copy()
Copyright © 2018. All rights reserved.