multivalent.devel.lens

Class Ruler

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 StringATTR_BIGTICK
static StringATTR_SMALLTICK
Method Summary
booleanpaintAfter(Context cx, Node node)
Draw tick marks on top of whatever.
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
booleansemanticEventAfter(SemanticEvent se, String msg)
Fix height/width at FIXEDHEIGHT pixels, depending on orientation.

Field Detail

ATTR_BIGTICK

public static final String ATTR_BIGTICK

ATTR_SMALLTICK

public static final String ATTR_SMALLTICK

Method Detail

paintAfter

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

restore

public void restore(ESISNode n, Map<String,Object> attr, Layer layer)

semanticEventAfter

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