Multivalent API

multivalent.devel.lens
Class Bounds

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

public class Bounds
extends Lens

Show bounds of tree nodes.

Version:
$Revision: 1.2 $ $Date: 2002/02/02 12:35:39 $

Field Summary
protected  NFont font_
           
static java.awt.Color[] RAINBOW
           
 
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
Bounds()
           
 
Method Summary
 boolean appearance(Context cx, boolean all)
          Redraw underlying text in light colors.
 boolean paintAfter(Context cx, Node node)
          Effect: arbitrary drawing on top.
 
Methods inherited from class multivalent.std.lens.Lens
close, destroy, getContentBounds, getLensMan, getPriority, paintBefore, restore, save, 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

RAINBOW

public static final java.awt.Color[] RAINBOW

font_

protected NFont font_
Constructor Detail

Bounds

public Bounds()
Method Detail

appearance

public boolean appearance(Context cx,
                          boolean all)
Redraw underlying text in light colors.

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

paintAfter

public boolean paintAfter(Context cx,
                          Node node)
Description copied from class: Lens
Effect: arbitrary drawing on top. Can even traverse tree for special effects (that don't compose with other lenses). Warning: this type of effects don't compose as well with other lenses.

Overrides:
paintAfter in class Lens
Returns:
false so it composes with other lenses
See Also:
Ruler, Bounds, Cypher

Multivalent API