| Modifier and Type | Field and Description |
|---|---|
protected int |
height |
protected Box |
root |
protected String |
title |
protected URL |
url |
protected int |
width |
| Constructor and Description |
|---|
DefaultPage(Page src) |
DefaultPage(URL url) |
| Modifier and Type | Method and Description |
|---|---|
Box |
getBoxAt(int x,
int y)
Finds the deepest node in the tree that contains the given point.
|
Vector<Box> |
getBoxesInRegion(Rectangular r)
Finds the root boxes of subtrees that are fully contained in the given region based on their visual bounds.
|
int |
getHeight()
Obtains the page height.
|
Box |
getRoot()
Returns the root box of the page.
|
URL |
getSourceURL()
Obtains the source URL of the page.
|
String |
getTitle()
Obtains the page title specified using the
<title> tag. |
int |
getWidth()
Obtains the page width.
|
protected Box |
recursiveGetBoxAt(Box root,
int x,
int y) |
void |
setHeight(int height) |
void |
setRoot(Box root) |
void |
setTitle(String title) |
void |
setWidth(int width) |
protected URL url
protected String title
protected Box root
protected int width
protected int height
public URL getSourceURL()
PagegetSourceURL in interface Pagepublic String getTitle()
Page<title> tag.public void setTitle(String title)
public Box getRoot()
Pagepublic void setRoot(Box root)
public int getWidth()
Pagepublic void setWidth(int width)
public int getHeight()
Pagepublic void setHeight(int height)
public Box getBoxAt(int x, int y)
Pagepublic Vector<Box> getBoxesInRegion(Rectangular r)
PagegetBoxesInRegion in interface Pager - The region to be testedCopyright © 2018. All rights reserved.