multivalent.node

Class FixedIHBox

public class FixedIHBox extends FixedI

Fixed-format INode that adjusts to changes in size of children by moving them horizontally.

Version: $Revision: 1.2 $ $Date: 2002/01/27 03:01:20 $

Constructor Summary
FixedIHBox(String name, Map<String,Object> attr, INode parent)
Method Summary
booleanbreakAfter()
booleanbreakBefore()
booleaneventNode(AWTEvent e, Point rel)
Can "hit" in between nodes to pick up prevailing spans (cur node set to first node following, with offset -1).
booleanformatNode(int width, int height, Context cx)
Adjust for changes in height and width of children.
booleanformatNodeOLD(int width, int height, Context cx)
Assumes left-to-right on same baseline.
voidpaintNode(Rectangle docclip, Context cx)
Fill in interword-space, in particular for backgrounds for highlights and underlines for hyperlinks.

Constructor Detail

FixedIHBox

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

Method Detail

breakAfter

public boolean breakAfter()

breakBefore

public boolean breakBefore()

eventNode

public boolean eventNode(AWTEvent e, Point rel)
Can "hit" in between nodes to pick up prevailing spans (cur node set to first node following, with offset -1). Taken from IParaBox. Maybe put in INode, as "interword".

formatNode

public boolean formatNode(int width, int height, Context cx)
Adjust for changes in height and width of children. X Precondition: ibbox is minimum container of children ibboxes.

formatNodeOLD

public boolean formatNodeOLD(int width, int height, Context cx)
Assumes left-to-right on same baseline.

paintNode

public void paintNode(Rectangle docclip, Context cx)
Fill in interword-space, in particular for backgrounds for highlights and underlines for hyperlinks.