Multivalent API

multivalent.std.span
Class AnchorSpan

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.Span
              extended by multivalent.std.span.AnchorSpan
All Implemented Interfaces:
ContextListener, EventListener, java.util.EventListener

public class AnchorSpan
extends Span

Intra-document destination of a hyperlink: a named, robustly located point in document.

Version:
$Revision: 1.4 $ $Date: 2002/05/11 08:29:21 $

Field Summary
 
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
AnchorSpan()
           
 
Method Summary
 boolean eventAfter(java.awt.AWTEvent e, java.awt.Point rel, Node n)
          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 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 ".
 boolean semanticEventBefore(SemanticEvent se, java.lang.String msg)
          Navigate to referring links in same document, in span's popup menu.
 void setAnchorName(java.lang.String name)
           
 
Methods inherited from class multivalent.Span
appearance, buildAfter, checkRep, close, closeAll, contains, contains, destroy, event, getEnd, getStart, isSet, markDirty, move, move, move, moveq, moveq, moveq, moveqSwap, open, repaint, repaint, save, 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
 

Constructor Detail

AnchorSpan

public AnchorSpan()
Method Detail

setAnchorName

public void setAnchorName(java.lang.String name)

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

semanticEventBefore

public boolean semanticEventBefore(SemanticEvent se,
                                   java.lang.String msg)
Navigate to referring links in same document, in span's popup menu.

Overrides:
semanticEventBefore in class Span

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se,
                                  java.lang.String msg)
Description copied from class: Span
Recognize "deleteSpan " and "morphSpan ".

Overrides:
semanticEventAfter in class Span

eventAfter

public boolean eventAfter(java.awt.AWTEvent e,
                          java.awt.Point rel,
                          Node n)
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

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

Multivalent API