multivalent.node

Class IParaBox

public class IParaBox extends INode

Like a paragraph, layout children in a row, wrapping lines as necessary. Supports margins and floats. The most heavily used node type.

LATER: maybe introduce (and remove) a nonstructural nodes for each line to balance tree better.

Version: $Revision: 1.4 $ $Date: 2002/02/02 13:41:39 $

Constructor Summary
IParaBox(String name, Map<String,Object> attr, INode parent)
Method Summary
booleaneventNode(AWTEvent e, Point rel)
Stops at first node where bbox.y > rel.y.
booleanformatNode(int width, int height, Context cx)
voidpaintNode(Rectangle docclip, Context cx)
Paint (nonexistent) spaces between words, as in background for selection and highlights, underline for hyperlinks
voidreformat(Node dirty)
Needs refurbishing.

Constructor Detail

IParaBox

public IParaBox(String name, Map<String,Object> attr, INode parent)

Method Detail

eventNode

public boolean eventNode(AWTEvent e, Point rel)
Stops at first node where bbox.y > rel.y. Can "hit" in between nodes to pick up prevailing spans (cur node set to first node following, with offset -1).

formatNode

public boolean formatNode(int width, int height, Context cx)

paintNode

public void paintNode(Rectangle docclip, Context cx)
Paint (nonexistent) spaces between words, as in background for selection and highlights, underline for hyperlinks.

reformat

public void reformat(Node dirty)
Needs refurbishing.