multivalent.node
Class IRootAbs
java.lang.Object
multivalent.VObject
multivalent.Node
multivalent.INode
multivalent.node.IRootAbs
- All Implemented Interfaces:
- java.lang.Cloneable
- public class IRootAbs
- extends INode
Visual layer containing elements absolutely positioned within current document--
that is, relative to the current document's virtual canvas including scrolling,
but independent of content.
- Version:
- $Revision: 1.3 $ $Date: 2002/03/06 02:14:04 $
- See Also:
IRootScreen
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 |
Constructor Summary |
IRootAbs()
|
IRootAbs(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attr,
INode parent)
|
Method Summary |
boolean |
eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
Never claims Browser.setCurNode(Node, int) itself. |
boolean |
formatBeforeAfter(int width,
int height,
Context cx)
Internal nodes might have a structural style
LATER: externalize format to a behavior and choose with style sheet. |
boolean |
formatNode(int width,
int height,
Context cx)
Children report dimensions (width and height), parent places at (x,y). |
Methods inherited from class multivalent.INode |
addCategory, appendChild, breakAfter, breakBefore, checkRep, childAt, childNum, clipboardNode, clone, contains, dump, dx, dy, eventBeforeAfter, findDFS, getElementById, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getNextSibling, getPreviousSibling, insertChildAt, isStruct, markDirtySubtreeDown, paintBeforeAfter, paintNode, 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, reformat, 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 |
IRootAbs
public IRootAbs()
IRootAbs
public IRootAbs(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> attr,
INode parent)
formatBeforeAfter
public boolean formatBeforeAfter(int width,
int height,
Context cx)
- Description copied from class:
INode
- Internal nodes might have a structural style
LATER: externalize format to a behavior and choose with style sheet.
- Overrides:
formatBeforeAfter
in class INode
- Parameters:
width
- of screen, or fraction thereof available to be taken by nodeheight
- of screen, or fraction thereof available to be taken by node (largely ignored in HTML, which has infinitely long scroll, except in FRAME)- See Also:
Behavior
formatNode
public boolean formatNode(int width,
int height,
Context cx)
- Description copied from class:
INode
- Children report dimensions (width and height), parent places at (x,y).
Bbox = union of children's bboxes
Children stacked vertically like TeX vbox; override to implement other layout strategies
To implement a new layout manager, override this method.
- Overrides:
formatNode
in class INode
- See Also:
FixedI
eventNode
public boolean eventNode(java.awt.AWTEvent e,
java.awt.Point rel)
- Never claims
Browser.setCurNode(Node, int)
itself.
- Overrides:
eventNode
in class INode
- See Also:
TreeEvent
,
SemanticEvent