Multivalent API

multivalent.std.lens
Class Rescale

java.lang.Object
  extended by multivalent.VObject
      extended by multivalent.Behavior
          extended by multivalent.std.lens.Lens
              extended by multivalent.std.lens.Rescale
All Implemented Interfaces:
ContextListener

public class Rescale
extends Lens

Rescale lens. As described in the "Programmer’s Guide to the Java 2D™ API": "Rescaling can increase or decrease the intensity of all points. Rescaling can be used to increase the dynamic range of an otherwise neutral image, bringing out detail in a region that appears neutral or flat."

Version:
$Revision: 1.1 $ $Date: 2002/11/18 04:49:54 $
See Also:
Sharpen, EdgeDetect

Field Summary
 
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
Rescale()
           
 
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
 

Constructor Detail

Rescale

public Rescale()
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