multivalent.std.lens
Class BitMagnify
java.lang.Object
multivalent.VObject
multivalent.Behavior
multivalent.std.lens.Lens
multivalent.std.lens.BitMagnify
- All Implemented Interfaces:
- ContextListener, java.awt.image.ImageObserver
- public class BitMagnify
- extends Lens
- implements java.awt.image.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 java.awt.Point |
rel_
|
protected boolean |
warp_
|
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Method Summary |
boolean |
eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
During Behavior.eventBefore(AWTEvent, Point, Node) , the behaviors that take primary action to that event should do so,
after having given other behaviors the opportunity to filter it during eventBefore. |
boolean |
eventBefore(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
Transform mouse coordinates to match magnified. |
boolean |
imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
|
boolean |
paintAfter(Context cx,
Node node)
Effect: arbitrary drawing on top. |
Methods inherited from class multivalent.std.lens.Lens |
appearance, close, destroy, getContentBounds, getLensMan, getPriority, paintBefore, restore, save, semanticEventAfter, show |
Methods inherited from class multivalent.Behavior |
buildAfter, buildBefore, checkRep, clipboardAfter, clipboardBefore, createUI, 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 |
rel_
protected java.awt.Point rel_
warp_
protected boolean warp_
BitMagnify
public BitMagnify()
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int flags,
int x,
int y,
int w,
int h)
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver
paintAfter
public boolean paintAfter(Context cx,
Node node)
- Description copied from class:
Lens
- Effect: arbitrary drawing on top.
Can even traverse tree for special effects (that don't compose with other lenses).
Warning: this type of effects don't compose as well with other lenses.
- Overrides:
paintAfter
in class Lens
- Returns:
- false so it composes with other lenses
- See Also:
Ruler
,
Bounds
,
Cypher
eventBefore
public boolean eventBefore(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
- Transform mouse coordinates to match magnified.
- Overrides:
eventBefore
in class Behavior
- See Also:
SemanticEvent
,
AWTEvent
,
Browser
,
LensMan
eventAfter
public boolean eventAfter(java.awt.AWTEvent e,
java.awt.Point rel,
Node obsn)
- Description copied from class:
Behavior
- During
Behavior.eventBefore(AWTEvent, Point, Node)
, the behaviors that take primary action to that event should do so,
after having given other behaviors the opportunity to filter it during eventBefore.
- Overrides:
eventAfter
in class Behavior