A B C D E F G H I L M O P R S T U V W

A

AbstractBox - class AbstractBox.
Adaptor class that implements Box by supplying reasonable default for most of the methods.
AbstractBox() - Constructor for class AbstractBox
 
AbstractFlexibleBox - class AbstractFlexibleBox.
Adaptor class for FlexibleBox.
AbstractFlexibleBox() - Constructor for class AbstractFlexibleBox
 
AbstractRigidBox - class AbstractRigidBox.
Adaptor class for rigid boxes.
AbstractRigidBox() - Constructor for class AbstractRigidBox
 
actionPerformed(ActionEvent) - Method in class BrowserController
The eventhandler for button clicks.
add(Object) - Method in class Set
Add an object to the set.
antialias - Static variable in class Browser
Flag to determine if antialiasing is turned on.

B

BlockQuote - class BlockQuote.
A block-quote.
BlockQuote() - Constructor for class BlockQuote
 
BOTH - Static variable in interface RigidBox
The constant denoting both edges.
box - Variable in class DocumentModel
The FlexibleBox representing the page.
Box - interface Box.
Specifies a box.
boxes - Variable in class AbstractFlexibleBox
The child-boxes of this box.
BoxFlow - class BoxFlow.
A flexible box that knows how to flow other boxes.
BoxFlow() - Constructor for class BoxFlow
 
Break - class Break.
A linebreak.
Break() - Constructor for class Break
Constructs a new linebreak.
Browser - class Browser.
A browser.
Browser() - Constructor for class Browser
 
BrowserController - class BrowserController.
The controller of the browser.
BrowserController(URL) - Constructor for class BrowserController
 
BrowserModel - class BrowserModel.
This class represents the state of the browser.
BrowserModel(URL) - Constructor for class BrowserModel
Constructs a new BrowserModel.

C

clear() - Method in class HyperLinkSet
Clears the set.
clear() - Method in class Set
Clears the set.
clear() - Method in class Stack
Clears the stack.
contains(int, int) - Method in class HyperLink
Checks to see if (a, b) is within this link.

D

debug(String) - Static method in class Browser
Prints messages on System.err if debugging is enabled.
debugging - Static variable in class Browser
Flag to determine if debugging is turned on.
DocumentModel - class DocumentModel.
The document model.
DocumentModel(FlexibleBox, String) - Constructor for class DocumentModel
Constructs a new DocumentModel.
DocumentView - class DocumentView.
The class responsible for the painting.
DocumentView(DocumentModel, BrowserModel) - Constructor for class DocumentView
Makes a new DocumentView.
doLayout(Graphics, JComponent, int) - Method in class AbstractBox
 
doLayout(Graphics, JComponent, int) - Method in class AbstractFlexibleBox
Runs through the child-boxes and asks them to do layout with the same parameters as this method was called with.
doLayout(Graphics, JComponent, int) - Method in class BlockQuote
 
doLayout(Graphics, JComponent, int) - Method in interface Box
Makes the box update it's own width and height, and layout it's child-boxes.
doLayout(Graphics, JComponent, int) - Method in class BoxFlow
 
doLayout(Graphics, JComponent, int) - Method in class Break
 
doLayout(Graphics, JComponent, int) - Method in class HorizontalBoxStack
 
doLayout(Graphics, JComponent, int) - Method in class HorizontalRule
 
doLayout(Graphics, JComponent, int) - Method in class ImageBox
Calculates the width and height of the image.
doLayout(Graphics, JComponent, int) - Method in class OrderedList
 
doLayout(Graphics, JComponent, int) - Method in class Paragraph
Updates the width and height of the box.
doLayout(Graphics, JComponent, int) - Method in class RigidBoxGroup
 
doLayout(Graphics, JComponent, int) - Method in class Table
Makes the table calculate it's width and height.
doLayout(Graphics, JComponent, int) - Method in class TextFragment
 
doLayout(Graphics, JComponent, int) - Method in class UnorderedList
 
doLayout(Graphics, JComponent, int) - Method in class VerticalBoxStack
 
drawAt(int, int, DocumentView) - Method in class AbstractBox
 
drawAt(int, int, DocumentView) - Method in class BlockQuote
 
drawAt(int, int, DocumentView) - Method in interface Box
Draws the box with it's upper-left corner at (x, y).
drawAt(int, int, DocumentView) - Method in class BoxFlow
 
drawAt(int, int, DocumentView) - Method in class Break
 
drawAt(int, int, DocumentView) - Method in class HorizontalBoxStack
 
drawAt(int, int, DocumentView) - Method in class HorizontalRule
 
drawAt(int, int, DocumentView) - Method in class ImageBox
 
drawAt(int, int, DocumentView) - Method in class OrderedList
 
drawAt(int, int, DocumentView) - Method in class RigidBoxGroup
 
drawAt(int, int, DocumentView) - Method in class Table
 
drawAt(int, int, DocumentView) - Method in class TextFragment
 
drawAt(int, int, DocumentView) - Method in class UnorderedList
 
drawAt(int, int, DocumentView) - Method in class VerticalBoxStack
 
drawImage(int, int, Image, HyperLink) - Method in class DocumentView
Draws an image.
drawOval(int, int, int, int, Color) - Method in class DocumentView
Draws and fills an oval.
drawRect(int, int, int, int, Color) - Method in class DocumentView
Draws a rectangle.
drawString(int, int, int, String, Font, HyperLink) - Method in class DocumentView
Draws a string.
drawString(int, int, String, Font, HyperLink) - Method in class DocumentView
Draws a string.

E

empty() - Method in class Set
Is the set empty?
empty() - Method in class Stack
Reports if the stack is empty.
endTableRow() - Method in class Table
Ends the current row.
ErrorPage - class ErrorPage.
This class is used to generage error-pages.
ErrorPage(String, URL) - Constructor for class ErrorPage
Generates a page with an error-message.

F

fillOval(int, int, int, int, Color) - Method in class DocumentView
Draws an oval.
fillRect(int, int, int, int, Color) - Method in class DocumentView
Draws and fills a rectangle.
FlexibleBox - interface FlexibleBox.
A box that can be resized, but not split.

G

getBackwardURL() - Method in class BrowserModel
Returns the URL that should be used if the user want's to go backward.
getCurrentURL() - Method in class BrowserModel
Returns the current URL.
getForwardURL() - Method in class BrowserModel
Returns the URL that should be used if the user want's to go forward.
getHeight() - Method in class AbstractBox
 
getHeight() - Method in interface Box
Returns the height of this box.
getHomeURL() - Method in class BrowserModel
Returns the home URL.
getLargestTail() - Method in class AbstractRigidBox
Tries to make the largest right part from a split.
getLargestTail() - Method in interface RigidBox
Returns the right part of a split, where the right part is as large at possible.
getLargestTail() - Method in class TextFragment
 
getMinimumWidth() - Method in class AbstractBox
 
getMinimumWidth() - Method in interface Box
Returns the minimum width of this box.
getMinimumWidth() - Method in class BoxFlow
The minimum width of the box.
getMinimumWidth() - Method in class Break
The minimum width of the break.
getMinimumWidth() - Method in class HorizontalBoxStack
The minimum width of this box.
getMinimumWidth() - Method in class HorizontalRule
A horizontal rule doesn't have a minimum width, as it will resize itself as the available width changes.
getMinimumWidth() - Method in class Table
The minimum width of this box.
getMinimumWidth() - Method in class TextFragment
Returns the minimum width of this TextFragment.
getMinimumWidth() - Method in class UnorderedList
The minimum width of this box.
getMinimumWidth() - Method in class VerticalBoxStack
The minimum width of this box.
getPreferredWidth() - Method in class AbstractBox
 
getPreferredWidth() - Method in interface Box
Returns the preferred width of this box.
getPreferredWidth() - Method in class BoxFlow
The preferred width of this box.
getPreferredWidth() - Method in class Break
The preferred width of the break.
getPreferredWidth() - Method in class HorizontalBoxStack
The preferred width of this box.
getPreferredWidth() - Method in class HorizontalRule
A horizontal rule doesn't have a preferred width, as it will resize itself as the available width changes.
getPreferredWidth() - Method in class Table
The preferred width of this box.
getPreferredWidth() - Method in class VerticalBoxStack
The preferred width of this box.
getSmallestHead() - Method in class AbstractRigidBox
Tries to make the smallest left part from a split.
getSmallestHead() - Method in interface RigidBox
Returns the left part of a split, where the left part is as small as possible.
getSmallestHead() - Method in class TextFragment
 
getTitle() - Method in class DocumentView
Returns the title of the DocumentModel.
getURL() - Method in class HyperLink
Returns the URL of this hyperlink.
getURL(int, int) - Method in class BrowserModel
Returns the URL at (x, y).
getURL(int, int) - Method in class HyperLinkSet
Finds the HyperLink at (x, y).
getWidth() - Method in class AbstractBox
 
getWidth() - Method in interface Box
Returns the width of this box.
goBackward() - Method in class BrowserModel
Goes backward.
goForward() - Method in class BrowserModel
Goes forward.
goHome() - Method in class BrowserModel
Goes home.
goToNewURL(URL) - Method in class BrowserModel
Goes to a new URL.

H

height - Variable in class AbstractBox
The height of the box, defaults to -1.
HorizontalBoxStack - class HorizontalBoxStack.
A horizontal stack of boxes.
HorizontalBoxStack() - Constructor for class HorizontalBoxStack
 
HorizontalRule - class HorizontalRule.
A horizontal rule.
HorizontalRule() - Constructor for class HorizontalRule
Creates a new horizontal rule.
HyperLink - class HyperLink.
A hyperlink.
HyperLink(int, int, int, int, URL) - Constructor for class HyperLink
Creates a new hyperlink.
HyperLinkSet - class HyperLinkSet.
A set of hyperlinks.
HyperLinkSet() - Constructor for class HyperLinkSet
Constructor.

I

ImageBox - class ImageBox.
An image.
ImageBox(URL, URL) - Constructor for class ImageBox
Constructs an ImageBox.
insert(Box) - Method in class AbstractFlexibleBox
 
insert(Box) - Method in interface FlexibleBox
Inserts another box into this box.
insert(Box) - Method in class RigidBoxGroup
Inserts a box into the group
insert(Box) - Method in class Table
 
insert(HyperLink) - Method in class HyperLinkSet
Inserts a new HyperLink into the set.
isEmpty() - Method in class AbstractFlexibleBox
 
isEmpty() - Method in interface FlexibleBox
Reports wether or not this box contains any child-boxes.
isEmpty() - Method in class TableData
Reports if the cell is empty.

L

LEFT - Static variable in interface RigidBox
The left edge constant.
ListItem - class ListItem.
An alias for a VerticalBoxStack.
ListItem() - Constructor for class ListItem
 

M

main(String[]) - Static method in class Browser
The main method.
member(Object) - Method in class Set
Compares obj to the item is the set to determine if obj is already a member of the set.
min_width - Variable in class AbstractBox
The minimum width of this box, defaults to -1.
mouseClicked(MouseEvent) - Method in class BrowserController
The eventhandler for mouseclicks.
mouseDragged(MouseEvent) - Method in class BrowserController
Dummy eventhandler.
mouseEntered(MouseEvent) - Method in class BrowserController
Dummy eventhandler.
mouseExited(MouseEvent) - Method in class BrowserController
Dummy eventhandler.
mouseMoved(MouseEvent) - Method in class BrowserController
Updates the status field when the mouse moves.
mousePressed(MouseEvent) - Method in class BrowserController
Dummy eventhandler.
mouseReleased(MouseEvent) - Method in class BrowserController
Dummy eventhandler.

O

OrderedList - class OrderedList.
An ordered list, eg.
OrderedList(int, Font) - Constructor for class OrderedList
Creates an ordered list.

P

paintComponent(Graphics) - Method in class DocumentView
Redraws the component
Paragraph - class Paragraph.
A paragraph.
Paragraph() - Constructor for class Paragraph
 
parse(String) - Static method in class Parser
Parses a HTML document.
parse(URL) - Static method in class Parser
Parses a HTML document.
Parser - class Parser.
A parser for HTML.
Parser() - Constructor for class Parser
 
peek() - Method in class Stack
Peeks at the object at the top of the stack without removing it.
pen - Variable in class AbstractRigidBox
The Graphics context used when drawing this rigid box.
pop() - Method in class Stack
Removes the object at the top of the stack.
pref_width - Variable in class AbstractBox
The preferred width of the box, defaults to -1.
push(Object) - Method in class Stack
Adds an object to the stack.

R

registreLink(HyperLink) - Method in class BrowserModel
Inserts a {@ling HyperLink} in the list of current links.
RIGHT - Static variable in interface RigidBox
The right edge constant.
RigidBox - interface RigidBox.
A RigidBox is a box that can only be split, not resized.
RigidBoxGroup - class RigidBoxGroup.
A group of rigid boxes.
RigidBoxGroup() - Constructor for class RigidBoxGroup
 

S

seenLink(HyperLink) - Method in class BrowserModel
Reports if the URL in l has been seen before.
Set - class Set.
A set of non-null objects.
Set() - Constructor for class Set
Constructs a set with an initial size of 32 elements.
Set(int) - Constructor for class Set
Constructs a set with room for size elements.
size() - Method in class Stack
The number of elements on the stack.
splitHead(int) - Method in class AbstractRigidBox
Tries to split the box at w.
splitHead(int) - Method in interface RigidBox
Tries to split the box at w.
splitHead(int) - Method in class TextFragment
 
splitIsPossible(int) - Method in class AbstractRigidBox
Reports wether or not the box can be split at w.
splitIsPossible(int) - Method in class Break
Reports wether or not a split is possible.
splitIsPossible(int) - Method in class HorizontalRule
Returns false, as a horizantal rule can't be split.
splitIsPossible(int) - Method in interface RigidBox
Reports wether or not the box can be split at w.
splitIsPossible(int) - Method in class TextFragment
Reports if a split is possible at w.
splitTail(int) - Method in class AbstractRigidBox
Tries to split the box at w.
splitTail(int) - Method in interface RigidBox
Tries to split the box at w.
splitTail(int) - Method in class TextFragment
 
Stack - class Stack.
Stack implements a stack of non-null objects.
Stack() - Constructor for class Stack
Constructs the empty stack.

T

Table - class Table.
This class models a table.
Table() - Constructor for class Table
 
TableData - class TableData.
An alias for a VerticalBoxStack.
TableData() - Constructor for class TableData
 
TextFragment - class TextFragment.
A fragment of text.
TextFragment(String, Font, URL) - Constructor for class TextFragment
Creates a new TextFragment.
title - Variable in class DocumentModel
The title of the page.
toString() - Method in class AbstractBox
Returns a representation of the box.
toString() - Method in interface Box
Gives you information about the box.
toString() - Method in class TextFragment
 
trim(int) - Method in class AbstractRigidBox
Pretends to trim the box - it does nothing as the body of the method is empty.
trim(int) - Method in interface RigidBox
Trims the box.
trim(int) - Method in class TextFragment
 

U

UnorderedList - class UnorderedList.
An unordered list eg.
UnorderedList(int) - Constructor for class UnorderedList
 

V

VerticalBoxStack - class VerticalBoxStack.
A vertical stack of boxes.
VerticalBoxStack() - Constructor for class VerticalBoxStack
 

W

width - Variable in class AbstractBox
The width of the box, defaults to -1.

A B C D E F G H I L M O P R S T U V W