multivalent.std.span
Class CapSpan
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.Span
multivalent.std.span.ActionSpan
multivalent.std.span.CapSpan
- All Implemented Interfaces:
- ContextListener, EventListener, java.util.EventListener
- public class CapSpan
- extends ActionSpan
Change case of region by clicking anywhere in span.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/02 13:16:26 $
Field Summary |
static java.lang.String |
ATTR_CAPTYPE
String to show when hovering over link. |
Method Summary |
boolean |
action()
Subclasses can make public if desired. |
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. |
void |
destroy()
Removes span from document and its layer. |
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. |
void |
setCaptype(java.lang.String captype)
|
Methods inherited from class multivalent.Span |
buildAfter, checkRep, close, closeAll, contains, contains, getEnd, getPriority, getStart, isSet, markDirty, move, move, move, moveq, moveq, moveqSwap, open, repaint, repaint, 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, 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 |
ATTR_CAPTYPE
public static final java.lang.String ATTR_CAPTYPE
- String to show when hovering over link.
- See Also:
- Constant Field Values
CapSpan
public CapSpan()
setCaptype
public void setCaptype(java.lang.String captype)
action
public boolean action()
- Description copied from class:
ActionSpan
- Subclasses can make
public
if desired.
Maybe just send event instead.
- Specified by:
action
in class ActionSpan
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
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
destroy
public void destroy()
- Description copied from class:
Span
- Removes span from document and its layer.
Different from moveq(null), which removes from document tree but not from layer.
If caller will handle all reformatting and repainting, as during a batch destory(), first moveq(null) on span.
- Overrides:
destroy
in class Span
restore
public void restore(ESISNode n,
java.util.Map<java.lang.String,java.lang.Object> attr,
Layer layer)
- Description copied from class:
Span
- Given ESIS subtree, pluck class-specific information from attributes, call super.restore() for locations.
Attributes named
start
and end
are reserved to hold Robust Location data.
- Overrides:
restore
in class Span
- See Also:
RobustLocation