Multivalent API

multivalent.devel.lens
Class Ruler

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

public class Ruler
extends Lens

Screen ruler, used to measure layouts.

Version:
$Revision: 1.3 $ $Date: 2003/06/02 05:16:49 $

Field Summary
static java.lang.String ATTR_BIGTICK
           
static java.lang.String ATTR_SMALLTICK
           
 
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
Ruler()
           
 
Method Summary
 boolean paintAfter(Context cx, Node node)
          Draw tick marks on top of whatever.
 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,
 boolean semanticEventAfter(SemanticEvent se, java.lang.String msg)
          Fix height/width at FIXEDHEIGHT pixels, depending on orientation.
 
Methods inherited from class multivalent.std.lens.Lens
appearance, close, destroy, getContentBounds, getLensMan, getPriority, paintBefore, save, 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_BIGTICK

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

ATTR_SMALLTICK

public static final java.lang.String ATTR_SMALLTICK
See Also:
Constant Field Values
Constructor Detail

Ruler

public Ruler()
Method Detail

paintAfter

public boolean paintAfter(Context cx,
                          Node node)
Draw tick marks on top of whatever.

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

semanticEventAfter

public boolean semanticEventAfter(SemanticEvent se,
                                  java.lang.String msg)
Fix height/width at FIXEDHEIGHT pixels, depending on orientation. Orentation implied by relative dimension lengths.

Overrides:
semanticEventAfter 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