multivalent.node

Class Root

public class Root extends Document

Documents can contain other documents, and this is the topmost instance. Within the Root are subdocuments corresponding to the user interface and content. Each Root corresponds to exactly one Browser and vice-versa. All Documents have shared variables; as the topmost Document, Root holds Browser-wide variables.

Version: $Revision: 1.7 $ $Date: 2003/02/06 05:30:24 $

See Also: Browser

Constructor Summary
Root(Map<String,Object> attr, Browser br)
Method Summary
booleancheckRep()
booleanformatBeforeAfter(int width, int height, Context cx)
Takes width and height from containing Browser Window.
RootgetRoot()
Ends chain up tree, returning self.
voidreformat(Node dirty)
voidrepaint(long ms, int x, int y, int w, int h)
Ends chain up tree and calls redraws in Browser/Canvas.

Constructor Detail

Root

public Root(Map<String,Object> attr, Browser br)

Method Detail

checkRep

public boolean checkRep()

formatBeforeAfter

public boolean formatBeforeAfter(int width, int height, Context cx)
Takes width and height from containing Browser Window.

getRoot

public Root getRoot()
Ends chain up tree, returning self.

reformat

public void reformat(Node dirty)

repaint

public void repaint(long ms, int x, int y, int w, int h)
Ends chain up tree and calls redraws in Browser/Canvas.