multivalent
Class CursorMark
java.lang.Object
multivalent.VObject
multivalent.Behavior
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. |
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 |
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
CursorMark
public CursorMark()
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