Multivalent API

multivalent.std.lens
Class LensOp

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.std.lens.Lens
              extended by multivalent.std.lens.LensOp
All Implemented Interfaces:
ContextListener
Direct Known Subclasses:
Blur, Brighten, Darken, EdgeDetect, Sharpen

public abstract class LensOp
extends Lens

Superclass for lenses that set operation for Graphics2D.drawImage(BufferedImage, BufferedImageOp, int, int).

Version:
$Revision: 1.1 $ $Date: 2003/01/11 05:57:22 $

Field Summary
protected  java.awt.image.BufferedImageOp op_
           
 
Fields inherited from class multivalent.std.lens.Lens
ATTR_HEIGHT, ATTR_TITLE, ATTR_WIDTH, ATTR_X, ATTR_Y, VAR_SHARED_LAYER, win_
 
Fields inherited from class multivalent.Behavior
ATTR_BEHAVIOR, name_
 
Fields inherited from class multivalent.VObject
attr_
 
Fields inherited from interface multivalent.ContextListener
LITTLE, LOT, PRIORITY_LENS, PRIORITY_MAX, PRIORITY_MIN, PRIORITY_SELECTION, PRIORITY_SPAN, PRIORITY_STRUCT, SOME
 
Constructor Summary
LensOp()
           
 
Method Summary
 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, eventAfter, eventBefore, 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
 

Field Detail

op_

protected java.awt.image.BufferedImageOp op_
Constructor Detail

LensOp

public LensOp()
Method Detail

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

Multivalent API