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
Method Summary |
protected int | drawStringWidth(Graphics2D g, String str, int x, int y, Color bkgnd, FontMetrics fm) |
void | event(AWTEvent e) |
boolean | eventAfter(AWTEvent e, Point rel, Node obsn) |
boolean | eventBefore(AWTEvent e, Point rel, Node obsn) |
void | listNodes(Node n, List<Node> l) Compute liinearized tree of nodes. |
boolean | paintAfter(Context cx, Node ignore) Entire document constructed dynamically as painted. |
void | restore(ESISNode n, Map<String,Object> attr, Layer layer) |
boolean | semanticEventAfter(SemanticEvent se, String msg) |
boolean | semanticEventBefore(SemanticEvent se, String msg) |
public static final String MSG_SET_SHOWLEAF
Toggle whether to show leaves or not.
"showDocTree/setShowLeaf".
public static final String MSG_SHOW
Request display of ducment tree.
"showDocTree".
public static final String MSG_SHOWROOT
Request display of ducment tree, rooted at uber-Root.
"showDocTree/Root".
protected int drawStringWidth(Graphics2D g, String str, int x, int y, Color bkgnd, FontMetrics fm)
public void event(AWTEvent e)
public boolean eventAfter(AWTEvent e, Point rel,
Node obsn)
public boolean eventBefore(AWTEvent e, Point rel,
Node obsn)
public void listNodes(
Node n, List<
Node> l)
Compute liinearized tree of nodes.
Entire document constructed dynamically as painted.
public void restore(
ESISNode n, Map<String,Object> attr,
Layer layer)