multivalent.std.span
Class Notemark
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.Span
multivalent.std.span.Notemark
- All Implemented Interfaces:
- ContextListener, EventListener, java.util.EventListener
- public class Notemark
- extends Span
out of date
Many functions taken over by elide attribute in style sheet.
Notemark - within otherwise collapsed outline sections, some important content is visible
=> now done with elide property in style sheet for span names. Doesn't do context, however.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/02 13:16:27 $
- See Also:
NotemarkUI
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)
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. |
int |
getPriority()
Self-reported priority relative to others of the same class, e.g., other spans. |
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). |
boolean |
paintBefore(Context cx,
Node node)
A tree walk protocol, called before observed node has been painted. |
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, restore, save, semanticEventAfter, 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, 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 |
appearance
public boolean appearance(Context cx,
boolean all)
- Description copied from interface:
ContextListener
- 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.
These behaviors can come from the style sheet, be ad hoc spans,
be lenses, or come from elsewhere.
Should be fast.
- Specified by:
appearance
in interface ContextListener
- Overrides:
appearance
in class Span
all
- all attributes or exclude those that are not inherited
getPriority
public int getPriority()
- Description copied from interface:
ContextListener
- Self-reported priority relative to others of the same class, e.g., other spans.
Use the constants defined here, such as
ContextListener.PRIORITY_LENS
, modified by ContextListener.LITTLE
/ContextListener.SOME
/{#link LOT}.
- Specified by:
getPriority
in interface ContextListener
- Overrides:
getPriority
in class Span
paintBefore
public boolean paintBefore(Context cx,
Node node)
- Description copied from class:
Behavior
- A tree walk protocol, called before observed node has been painted.
Called in same coordinate space as node's painting.
Can be used draw special background, but usual background setting is done by spans or style sheets.
- Overrides:
paintBefore
in class Behavior
- Returns:
- true to short-circuit to paintAfter at that node, bypassing painting of the subtree.
eventAfter
public boolean eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
- Description copied from class:
Behavior
- 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.
- Overrides:
eventAfter
in class Behavior
moveq
public void moveq(Leaf ln,
int lo,
Leaf rn,
int ro)
- Description copied from class:
Span
- "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).
Checks that endpoint offsets are valid, that is, >=0 and
- Overrides:
moveq
in class Span