public interface Page
Modifier and Type | Method and Description |
---|---|
Box |
getBoxAt(int x,
int y)
Finds the deepest node in the tree that contains the given point.
|
java.util.Vector<Box> |
getBoxesInRegion(Rectangular r)
Finds the root boxes of subtrees that intersect with the given region.
|
int |
getHeight()
Obtains the page height.
|
Box |
getRoot()
Returns the root box of the page.
|
java.net.URL |
getSourceURL()
Obtains the source URL of the page.
|
int |
getWidth()
Obtains the page width.
|
java.net.URL getSourceURL()
int getWidth()
int getHeight()
Box getRoot()
Box getBoxAt(int x, int y)
x
- The point X coordinatey
- The point Y coordinatenull
when there is no box
in the tree placed at the given coordinates.java.util.Vector<Box> getBoxesInRegion(Rectangular r)
r
- The region to be tested