Multivalent API

multivalent.std.lens
Class SignalLens

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.std.lens.Lens
              extended by multivalent.std.lens.SignalLens
All Implemented Interfaces:
ContextListener

public class SignalLens
extends Lens

Scriptable lens for effects that just need a signal set.

Version:
$Revision: 1.2 $ $Date: 2003/06/02 05:52:10 $
See Also:
SignalSpan

Field Summary
static java.lang.String ATTR_SIGNAL
           
static java.lang.String ATTR_VALUE
           
 java.lang.String signal
           
 java.lang.String value
           
 
Fields inherited from class multivalent.std.lens.Lens
ATTR_HEIGHT, ATTR_TITLE, ATTR_WIDTH, ATTR_X, ATTR_Y, VAR_SHARED_LAYER, win_
 
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
SignalLens()
           
 
Method Summary
 boolean appearance(Context cx, boolean all)
          Effect: Context attributes and signals.
 void restore(ESISNode n, java.util.Map<java.lang.String,java.lang.Object> attr, Layer layer)
          Creates corresponding VFrame, and sets title and bounds, which are available for subclasses to tweak,
 ESISNode save()
          Build up save data as ESIS tree, then write that out.
 
Methods inherited from class multivalent.std.lens.Lens
close, destroy, getContentBounds, getLensMan, getPriority, paintAfter, paintBefore, semanticEventAfter, show
 
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, putPreference, redo, restoreChildren, 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

ATTR_SIGNAL

public static final java.lang.String ATTR_SIGNAL
See Also:
Constant Field Values

ATTR_VALUE

public static final java.lang.String ATTR_VALUE
See Also:
Constant Field Values

signal

public java.lang.String signal

value

public java.lang.String value
Constructor Detail

SignalLens

public SignalLens()
Method Detail

appearance

public boolean appearance(Context cx,
                          boolean all)
Description copied from class: Lens
Effect: Context attributes and signals.

Specified by:
appearance in interface ContextListener
Overrides:
appearance in class Lens
all - all attributes or exclude those that are not inherited
Returns:
false so it composes with other lenses
See Also:
ContextListener, SignalLens

save

public ESISNode save()
Description copied from class: Behavior
Build up save data as ESIS tree, then write that out. Makes node with GI = behavior name, same attributes, and possibly some children. Attributes are cloned, so if you want to stuff attributes from state, do that before super.save(). Always have Behavior.ATTR_BEHAVIOR from save (short) classname.

Overrides:
save in class Lens

restore

public void restore(ESISNode n,
                    java.util.Map<java.lang.String,java.lang.Object> attr,
                    Layer layer)
Description copied from class: Lens
Creates corresponding VFrame, and sets title and bounds, which are available for subclasses to tweak,

Overrides:
restore in class Lens

Multivalent API