Multivalent API

multivalent.node
Class FixedIHBox

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Node
          extended by multivalent.INode
              extended by multivalent.node.FixedI
                  extended by multivalent.node.FixedIHBox
All Implemented Interfaces:
java.lang.Cloneable, Fixed

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 $

Field Summary
 
Fields inherited from class multivalent.node.FixedI
ibbox_
 
Fields inherited from class multivalent.INode
border, INSETS, INSETS_ZERO, margin, padding
 
Fields inherited from class multivalent.Node
align, ALIGN_INVALID, ATTR_ID, ATTR_SCRIPT, baseline, BASELINE, bbox, BOTH, BOTTOM, CENTER, CHAR, FILL, floats, INHERIT, JUSTIFY, LEFT, MAXNONSTRUCTDEPTH, MIDDLE, name_, NONE, observers_, parent_, PROBEWIDTH, RIGHT, sticky_, stickycnt_, TOP, valid_, valign
 
Fields inherited from class multivalent.VObject
attr_
 
Fields inherited from interface multivalent.node.Fixed
ATTR_REFORMATTED
 
Constructor Summary
FixedIHBox(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> attr, INode parent)
           
 
Method Summary
 boolean breakAfter()
           
 boolean breakBefore()
           
 boolean eventNode(java.awt.AWTEvent e, java.awt.Point rel)
          Can "hit" in between nodes to pick up prevailing spans (cur node set to first node following, with offset -1).
 boolean formatNode(int width, int height, Context cx)
          Adjust for changes in height and width of children.
 boolean formatNodeOLD(int width, int height, Context cx)
          Assumes left-to-right on same baseline.
 void paintNode(java.awt.Rectangle docclip, Context cx)
          Fill in interword-space, in particular for backgrounds for highlights and underlines for hyperlinks.
 
Methods inherited from class multivalent.node.FixedI
dump, formatNode, getIbbox, reformat
 
Methods inherited from class multivalent.INode
addCategory, appendChild, checkRep, childAt, childNum, clipboardNode, clone, contains, dx, dy, eventBeforeAfter, findDFS, formatBeforeAfter, getElementById, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getNextSibling, getPreviousSibling, insertChildAt, isStruct, markDirtySubtreeDown, paintBeforeAfter, removeAllChildren, removeChild, removeChildAt, setChildAt, setName, size, structChildAt, structChildNum, structsize
 
Methods inherited from class multivalent.Node
addObserver, addSticky, addSticky, childNum, clipboardBeforeAfter, cmp, commonAncestor, commonAncestor, contains, deleteObserver, dump, dump, findBFS, findBFS, findBFS, findDFS, findDFS, findDFS, getAbsLocation, getActivesAt, getActivesAt, getActivesAt, getBbox, getBrowser, getDocument, getIScrollPane, getName, getNextLeaf, getNextNode, getNodeName, getObservers, getParentNode, getPrevLeaf, getPrevNode, getRelLocation, getRoot, getSticky, indexSticky, intersects, isLeaf, isValid, markDirty, markDirtySubtree, markDirtyTo, morphInto, remove, removeSticky, removeSticky, removeTidy, repaint, repaint, repaint, repaint, scrollTo, scrollTo, setParentNode, setValid, sizeSticky, spanChunky, spanChunky, structChildNum, toString
 
Methods inherited from class multivalent.VObject
attrEntrySetIterator, attrKeysIterator, clearAttributes, getAttr, getAttr, getAttributes, getGlobal, getValue, hasAttributes, putAttr, removeAttr, setAttributes
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface multivalent.node.Fixed
getBbox
 

Constructor Detail

FixedIHBox

public FixedIHBox(java.lang.String name,
                  java.util.Map<java.lang.String,java.lang.Object> attr,
                  INode parent)
Method Detail

breakBefore

public boolean breakBefore()
Overrides:
breakBefore in class INode

breakAfter

public boolean breakAfter()
Overrides:
breakAfter in class INode

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.

Overrides:
formatNode in class FixedI
See Also:
FixedI

paintNode

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

Overrides:
paintNode in class INode

formatNodeOLD

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


eventNode

public boolean eventNode(java.awt.AWTEvent e,
                         java.awt.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".

Overrides:
eventNode in class INode
See Also:
TreeEvent, SemanticEvent

Multivalent API