public class DefaultAreaTree extends Object implements AreaTree
| Constructor and Description |
|---|
DefaultAreaTree(AreaTree src) |
DefaultAreaTree(Page page) |
| Modifier and Type | Method and Description |
|---|---|
Area |
createArea(Box box) |
Area |
createArea(List<Box> boxes) |
Area |
createArea(Rectangular r) |
Area |
getAreaAt(int x,
int y)
Finds the bottom-most area node present at the given coordinates in the area tree.
|
Area |
getAreaByName(String name)
Finds an area by the given name.
|
Page |
getPage()
Obtains the source page for this area tree.
|
Area |
getRoot()
Obtains the root node of the area tree.
|
void |
setRoot(Area root) |
void |
updateTopologies()
Updates the topology structures (e.g. grids) for all the areas in the tree.
|
protected Page page
public DefaultAreaTree(Page page)
public DefaultAreaTree(AreaTree src)
public Page getPage()
AreaTreepublic Area getRoot()
AreaTreepublic void setRoot(Area root)
public void updateTopologies()
AreaTreeupdateTopologies in interface AreaTreepublic Area getAreaAt(int x, int y)
SearchableAreaContainergetAreaAt in interface SearchableAreaContainerx - the X coordinatey - the Y coordinatenull when no node is found.public Area getAreaByName(String name)
SearchableAreaContainergetAreaByName in interface SearchableAreaContainername - the name of the areanull when nothing is found.public Area createArea(Rectangular r)
createArea in interface AreaTreepublic Area createArea(Box box)
createArea in interface AreaTreepublic Area createArea(List<Box> boxes)
createArea in interface AreaTreeCopyright © 2018. All rights reserved.