multivalent.std.lens

Class BitMagnify

public class BitMagnify extends Lens implements ImageObserver

Enlarge contexts by doubling pixel width and height as opposed to drawing at larger size (scaling with ATM). Usually use Magnify lens, but BitMagnify useful for debugging (layout and other kinds). (Broken if use Java 1.4's VolatileImage, which we don't anymore, because VolatileImage won't draw on top of itself.)

Version: $Revision: 1.2 $ $Date: 2002/11/18 04:48:05 $

See Also: Magnify

Field Summary
protected Pointrel_
protected booleanwarp_
Method Summary
booleaneventAfter(AWTEvent e, Point rel, Node obsn)
booleaneventBefore(AWTEvent e, Point rel, Node obsn)
Transform mouse coordinates to match magnified.
booleanimageUpdate(Image img, int flags, int x, int y, int w, int h)
booleanpaintAfter(Context cx, Node node)

Field Detail

rel_

protected Point rel_

warp_

protected boolean warp_

Method Detail

eventAfter

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

eventBefore

public boolean eventBefore(AWTEvent e, Point rel, Node obsn)
Transform mouse coordinates to match magnified.

imageUpdate

public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h)

paintAfter

public boolean paintAfter(Context cx, Node node)