|
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.Span
multivalent.std.span.OutlineSpan
Assumes LeafImage as first node, which shows open or closed arrow. Set elide=false in style sheet for headers. Fault in by observing outlineOpen event on that span (getArg()==this span), building up content, moving span's end to end of content. Nested by setting level: 1=topmost, 2=nested, 3=doubly nested, ... Searching needs to fault in all.
Outliner,
OutlineUI,
ManualPageVolume,
ManualPage,
History| Field Summary | |
|---|---|
static java.lang.String |
ATTR_LEVEL
|
static java.lang.String |
ATTR_OPEN
|
int |
level
|
static java.lang.String |
MSG_CLOSE
Close outline span. |
static java.lang.String |
MSG_CLOSE_ALL
Close all outline spans. |
static java.lang.String |
MSG_OPEN
Open outline span. |
static java.lang.String |
MSG_OPEN_ALL
Open all outline span. |
static java.lang.String |
MSG_TOGGLE
Toggle outline span. |
| Fields inherited from class multivalent.Span |
|---|
GI_END, GI_START, MSG_DELETE, MSG_EDIT, MSG_MORPH, MSG_UNATTACHED, pend, pstart |
| Fields inherited from class multivalent.Behavior |
|---|
ATTR_BEHAVIOR, name_ |
| Fields inherited from class multivalent.VObject |
|---|
attr_ |
| Fields inherited from interface multivalent.ContextListener |
|---|
LITTLE, LOT, PRIORITY_LENS, PRIORITY_MAX, PRIORITY_MIN, PRIORITY_SELECTION, PRIORITY_SPAN, PRIORITY_STRUCT, SOME |
| Constructor Summary | |
|---|---|
OutlineSpan()
|
|
| Method Summary | |
|---|---|
boolean |
appearance(Context cx,
boolean all)
Resets the graphics context every time the object is added to or dropped from the set active over the portion of the document being drawn. |
boolean |
eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
When click, resolve click to leaf, undo elision, scroll to leaf. |
int |
getPriority()
Lower priority than style sheet-based settings. |
boolean |
isOpen()
|
void |
moveq(Leaf ln,
int lo,
Leaf rn,
int ro)
"move quick" just updates summaries, so more efficient than move(), if caller: guarantees that first node comes before second node (so the system doesn't have to spend time checking this), and handles all reformatting and repainting (including marking tree nodes dirty) Useful using during initial tree builds, when adding spans and formatting in batch(es). |
void |
restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Given ESIS subtree, pluck class-specific information from attributes, call super.restore() for locations. |
boolean |
semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Recognize "deleteSpan " and "morphSpan ". |
void |
setClosed(boolean active)
|
| Methods inherited from class multivalent.Span |
|---|
buildAfter, checkRep, close, closeAll, contains, contains, destroy, event, getEnd, getStart, isSet, markDirty, move, move, move, moveq, moveq, moveqSwap, open, repaint, repaint, save, semanticEventBefore, stretch, toString |
| Methods inherited from class multivalent.Behavior |
|---|
buildBefore, clipboardAfter, clipboardBefore, createUI, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintAfter, paintBefore, putPreference, redo, restoreChildren, setName, 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_OPEN
"outlineOpen": arg= Span span-to-open.
public static final java.lang.String MSG_OPEN_ALL
"outlineOpenAll".
public static final java.lang.String MSG_CLOSE
"outlineClose": arg= Span span-to-close.
public static final java.lang.String MSG_CLOSE_ALL
"outlineCloseAll".
public static final java.lang.String MSG_TOGGLE
"outlineToggle": arg= Span span-to-close.
public static final java.lang.String ATTR_LEVEL
public static final java.lang.String ATTR_OPEN
public int level
| Constructor Detail |
|---|
public OutlineSpan()
| Method Detail |
|---|
public boolean isOpen()
public boolean appearance(Context cx,
boolean all)
ContextListener
appearance in interface ContextListenerappearance in class Spanall - all attributes or exclude those that are not inheritedpublic int getPriority()
getPriority in interface ContextListenergetPriority in class Span
public boolean eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
eventAfter in class Behavior
public boolean semanticEventAfter(SemanticEvent se,
java.lang.String msg)
Span
semanticEventAfter in class Spanpublic void setClosed(boolean active)
public void moveq(Leaf ln,
int lo,
Leaf rn,
int ro)
Spanmoveq in class Span
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
Spanstart and end are reserved to hold Robust Location data.
restore in class SpanRobustLocation
|
Multivalent API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||