|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmultivalent.VObject
multivalent.Behavior
multivalent.devel.ShowDocTree
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".
- show bbox bounds in context of document
Field Summary | |
---|---|
static java.lang.String |
MSG_SET_SHOWLEAF
Toggle whether to show leaves or not. |
static java.lang.String |
MSG_SHOW
Request display of ducment tree. |
static java.lang.String |
MSG_SHOWROOT
Request display of ducment tree, rooted at uber-Root. |
Fields inherited from class multivalent.Behavior |
---|
ATTR_BEHAVIOR, name_ |
Fields inherited from class multivalent.VObject |
---|
attr_ |
Constructor Summary | |
---|---|
ShowDocTree()
|
Method Summary | |
---|---|
protected int |
drawStringWidth(java.awt.Graphics2D g,
java.lang.String str,
int x,
int y,
java.awt.Color bkgnd,
NFont f)
|
void |
event(java.awt.AWTEvent e)
|
boolean |
eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
During Behavior.eventBefore(AWTEvent, Point, Node) , the behaviors that take primary action to that event should do so,
after having given other behaviors the opportunity to filter it during eventBefore. |
boolean |
eventBefore(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
|
void |
listNodes(Node n,
java.util.List<Node> l)
Compute liinearized tree of nodes. |
boolean |
paintAfter(Context cx,
Node ignore)
Entire document constructed dynamically as painted. |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Round robin distribution to all behaviors. |
boolean |
semanticEventBefore(SemanticEvent se,
java.lang.String msg)
Round robin distribution to all behaviors. |
Methods inherited from class multivalent.Behavior |
---|
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, destroy, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintBefore, putPreference, redo, restoreChildren, save, setName, toString, undo |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MSG_SHOW
"showDocTree".
public static final java.lang.String MSG_SHOWROOT
"showDocTree/Root".
public static final java.lang.String MSG_SET_SHOWLEAF
"showDocTree/setShowLeaf".
Constructor Detail |
---|
public ShowDocTree()
Method Detail |
---|
public boolean semanticEventBefore(SemanticEvent se, java.lang.String msg)
Behavior
semanticEventBefore
in class Behavior
public boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
Behavior
semanticEventAfter
in class Behavior
public void listNodes(Node n, java.util.List<Node> l)
public boolean eventBefore(java.awt.AWTEvent e, java.awt.Point rel, Node obsn)
eventBefore
in class Behavior
SemanticEvent
,
AWTEvent
,
Browser
,
LensMan
public boolean eventAfter(java.awt.AWTEvent e, java.awt.Point rel, Node obsn)
Behavior
Behavior.eventBefore(AWTEvent, Point, Node)
, the behaviors that take primary action to that event should do so,
after having given other behaviors the opportunity to filter it during eventBefore.
eventAfter
in class Behavior
public void event(java.awt.AWTEvent e)
event
in interface EventListener
protected int drawStringWidth(java.awt.Graphics2D g, java.lang.String str, int x, int y, java.awt.Color bkgnd, NFont f)
public boolean paintAfter(Context cx, Node ignore)
paintAfter
in class Behavior
public void restore(ESISNode n, java.util.Map<java.lang.String,java.lang.Object> attr, Layer layer)
Behavior
restore
in class Behavior
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |