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
Method Summary |
void | addLens(Lens lens) |
void | deleteLens(Lens lens) |
boolean | eventAfter(AWTEvent e, Point rel, Node obsn) |
INode | getVisualLayer() Return INode under which all Lens VFrame's are stored. |
boolean | paintAfter(Context cx, Node root) While painting lenses, shortcircuit higher ups until done. |
boolean | paintBefore(Context cx, Node notused)
Redraws portions of document covered by lenses, combining effects where lenses intersect.
|
void | raiseLens(Lens lens) Raise passed lens to top of stacking order, adding to stack if necessary. |
void | restore(ESISNode n, Map<String,Object> attr, Layer layer) |
ESISNode | save() LensMan is spontaneously generated -- nothing to save. |
public static final int MAXLENS
Maximum number of intersecting lenses; can have more total.
public void addLens(
Lens lens)
public void deleteLens(
Lens lens)
public boolean eventAfter(AWTEvent e, Point rel,
Node obsn)
public
INode getVisualLayer()
Return INode under which all Lens VFrame's are stored.
While painting lenses, shortcircuit higher ups until done.
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.
public void raiseLens(
Lens lens)
Raise passed lens to top of stacking order, adding to stack if necessary.
public void restore(
ESISNode n, Map<String,Object> attr,
Layer layer)
LensMan is spontaneously generated -- nothing to save.