Multivalent API

multivalent
Class CursorMark

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.CursorMark
All Implemented Interfaces:
java.util.Observer

public class CursorMark
extends Behavior
implements java.util.Observer

Blinking cursor. Could be Mark subclass, but as Behavior we can remap.

Version:
$Revision: 1.4 $ $Date: 2003/06/02 05:02:35 $

Field Summary
static java.lang.String MSG_SET
          Announce cursor has been moved to new point.
 
Fields inherited from class multivalent.Behavior
ATTR_BEHAVIOR, name_
 
Fields inherited from class multivalent.VObject
attr_
 
Constructor Summary
CursorMark()
           
 
Method Summary
 void destroy()
          Protocol.
 Mark getMark()
           
 int getPriority()
           
 boolean isSet()
           
 void move(int delta)
           
 void move(Leaf n, int offset)
           
 void move(Mark m)
           
 boolean paintAfter(Context cx, Node start)
          A tree walk protocol, called before observed node has been painted.
 void repaint()
           
 void repaint(long ms)
           
 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)
          Remove self when referenced document is closed.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class multivalent.Behavior
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, eventAfter, eventBefore, formatAfter, formatBefore, getBrowser, getDocument, getInstance, getInstance, getLayer, getLogger, getName, getPreference, getRoot, isEditable, paintBefore, putPreference, redo, restoreChildren, save, semanticEventBefore, 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

MSG_SET

public static final java.lang.String MSG_SET
Announce cursor has been moved to new point.

"setCursor": arg= CursorMark this.

See Also:
Constant Field Values
Constructor Detail

CursorMark

public CursorMark()
Method Detail

getMark

public Mark getMark()

isSet

public boolean isSet()

move

public void move(Mark m)

move

public void move(Leaf n,
                 int offset)

move

public void move(int delta)

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

paintAfter

public boolean paintAfter(Context cx,
                          Node start)
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. Use to draw annotations at node's location. For instance, Search uses this to decorate the scrollbar (a type of node) with location of matches.

Overrides:
paintAfter in class Behavior

getPriority

public int getPriority()

restore

public void restore(ESISNode n,
                    java.util.Map<java.lang.String,java.lang.Object> attr,
                    Layer layer)
Description copied from class: Behavior
Takes the place of a constructor's initialization functions; that is, it is invoked exactly once immediately after object instantiation. When restored from hub, passed XML content subtree if any as first parameter and attributes from XML tag's attributes. This protocol cannot be short-circuited.

Overrides:
restore in class Behavior

destroy

public void destroy()
Description copied from class: Behavior
Protocol. Cleans up state before being decommissioned: remove from Layer, observed nodes, .... Clients shouldn't hold a pointer/handle to object after destroy() as it is in an invalid state. This protocol cannot be short-circuited.

Overrides:
destroy in class Behavior

repaint

public void repaint()

repaint

public void repaint(long ms)

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se,
                                  java.lang.String msg)
Remove self when referenced document is closed.

Overrides:
semanticEventAfter in class Behavior

Multivalent API