multivalent.devel

Class ShowDocTree

public class ShowDocTree extends Behavior implements EventListener

Replace view current document with infomration on data structure: indented to show nesting, with name/GI, bbox, attributes, stickies, .... Lets the original document paint so it formats properly (including images which load asynchronously). Can scroll to see all of tree vs lame Windoze DOS window. Make a selection in the formatted document to jump to that point on the tree view. If line has red background, the node failed its self test. Click button-3 on node-line for validation details, list of actives. Turn on by going to Help menu and turning on the Debug switch. Then go to the new Debug menu and choose "Show Doc Tree" or "Show Doc Root".

Version: $Revision: 1.6 $ $Date: 2003/06/02 05:15:11 $

See Also: - show bbox bounds in context of document

Field Summary
static StringMSG_SET_SHOWLEAF
Toggle whether to show leaves or not.
static StringMSG_SHOW
Request display of ducment tree.
static StringMSG_SHOWROOT
Request display of ducment tree, rooted at uber-Root.
Method Summary
protected intdrawStringWidth(Graphics2D g, String str, int x, int y, Color bkgnd, FontMetrics fm)
voidevent(AWTEvent e)
booleaneventAfter(AWTEvent e, Point rel, Node obsn)
booleaneventBefore(AWTEvent e, Point rel, Node obsn)
voidlistNodes(Node n, List<Node> l)
Compute liinearized tree of nodes.
booleanpaintAfter(Context cx, Node ignore)
Entire document constructed dynamically as painted.
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
booleansemanticEventAfter(SemanticEvent se, String msg)
booleansemanticEventBefore(SemanticEvent se, String msg)

Field Detail

MSG_SET_SHOWLEAF

public static final String MSG_SET_SHOWLEAF
Toggle whether to show leaves or not.

"showDocTree/setShowLeaf".

MSG_SHOW

public static final String MSG_SHOW
Request display of ducment tree.

"showDocTree".

MSG_SHOWROOT

public static final String MSG_SHOWROOT
Request display of ducment tree, rooted at uber-Root.

"showDocTree/Root".

Method Detail

drawStringWidth

protected int drawStringWidth(Graphics2D g, String str, int x, int y, Color bkgnd, FontMetrics fm)

event

public void event(AWTEvent e)

eventAfter

public boolean eventAfter(AWTEvent e, Point rel, Node obsn)

eventBefore

public boolean eventBefore(AWTEvent e, Point rel, Node obsn)

listNodes

public void listNodes(Node n, List<Node> l)
Compute liinearized tree of nodes.

paintAfter

public boolean paintAfter(Context cx, Node ignore)
Entire document constructed dynamically as painted.

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se, String msg)

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se, String msg)