Multivalent API

multivalent.std.span
Class BlinkSpan

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

public class BlinkSpan
extends Span
implements java.util.Observer

Because you asked for it! Works on scanned pages, DVI, PDF, in menus.... Works by drawing setting the foreground color to the background color, or not, hooked to a timer.

Version:
$Revision: 1.3 $ $Date: 2002/01/16 05:00:20 $

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
BlinkSpan()
           
 
Method Summary
 boolean appearance(Context cx, boolean all)
          When blinked out, draw foreground same color as background.
 void destroy()
          Removes span from document and its layer.
 int getPriority()
          Higher priority than color changes, but not as high as SELECTION.
 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 update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class multivalent.Span
buildAfter, checkRep, close, closeAll, contains, contains, event, getEnd, getStart, isSet, markDirty, move, move, move, moveq, moveq, moveq, moveqSwap, open, repaint, repaint, save, semanticEventAfter, semanticEventBefore, stretch, toString
 
Methods inherited from class multivalent.Behavior
buildBefore, clipboardAfter, clipboardBefore, createUI, eventAfter, 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

BlinkSpan

public BlinkSpan()
Method Detail

appearance

public boolean appearance(Context cx,
                          boolean all)
When blinked out, draw foreground same color as background.

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()
Higher priority than color changes, but not as high as SELECTION.

Specified by:
getPriority in interface ContextListener
Overrides:
getPriority 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

update

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

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

Multivalent API