multivalent.std.lens

Class LensMan

public class LensMan extends Behavior

Manager to coordinate lens painting.

Version: $Revision: 1.6 $ $Date: 2002/11/18 05:11:41 $

See Also: WindowUI

Field Summary
static intMAXLENS
Maximum number of intersecting lenses; can have more total.
Method Summary
voidaddLens(Lens lens)
voiddeleteLens(Lens lens)
booleaneventAfter(AWTEvent e, Point rel, Node obsn)
INodegetVisualLayer()
Return INode under which all Lens VFrame's are stored.
booleanpaintAfter(Context cx, Node root)
While painting lenses, shortcircuit higher ups until done.
booleanpaintBefore(Context cx, Node notused)
Redraws portions of document covered by lenses, combining effects where lenses intersect.
voidraiseLens(Lens lens)
Raise passed lens to top of stacking order, adding to stack if necessary.
voidrestore(ESISNode n, Map<String,Object> attr, Layer layer)
ESISNodesave()
LensMan is spontaneously generated -- nothing to save.

Field Detail

MAXLENS

public static final int MAXLENS
Maximum number of intersecting lenses; can have more total.

Method Detail

addLens

public void addLens(Lens lens)

deleteLens

public void deleteLens(Lens lens)

eventAfter

public boolean eventAfter(AWTEvent e, Point rel, Node obsn)

getVisualLayer

public INode getVisualLayer()
Return INode under which all Lens VFrame's are stored.

paintAfter

public boolean paintAfter(Context cx, Node root)
While painting lenses, shortcircuit higher ups until done.

paintBefore

public boolean paintBefore(Context cx, Node notused)
Redraws portions of document covered by lenses, combining effects where lenses intersect. Lenses kept in same visual layer, on Browser's root, visually above everything except menus. Paint by drawing contents (including intersections) here in paintBefore, before window apparatus has a chance to clutter visuals, then follow normal control flow to draw empty VFrames, then nothing to do in paintAfter. Document sans lenses has been painted; now redraw parts under lenses.

raiseLens

public void raiseLens(Lens lens)
Raise passed lens to top of stacking order, adding to stack if necessary.

restore

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

save

public ESISNode save()
LensMan is spontaneously generated -- nothing to save.