org.jdesktop.jxlayer.plaf.effect
Class AbstractBufferedImageOpEffect

java.lang.Object
  extended by org.jdesktop.jxlayer.plaf.effect.AbstractLayerEffect
      extended by org.jdesktop.jxlayer.plaf.effect.AbstractBufferedImageOpEffect
All Implemented Interfaces:
LayerEffect
Direct Known Subclasses:
BufferedImageOpEffect

public class AbstractBufferedImageOpEffect
extends AbstractLayerEffect

The base class for BufferedImageOpEffect


Constructor Summary
AbstractBufferedImageOpEffect()
           
 
Method Summary
 void apply(java.awt.image.BufferedImage buffer, java.awt.Shape clip)
          Performes some operations on the passed BufferedImage.

Filters the passed image using clip and BufferedImageOps provided by getBufferedImageOps()

protected  java.awt.image.BufferedImageOp[] getBufferedImageOps()
          Returns the array of BufferedImageOps specified for this LayerEffect.
 
Methods inherited from class org.jdesktop.jxlayer.plaf.effect.AbstractLayerEffect
addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, isEnabled, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBufferedImageOpEffect

public AbstractBufferedImageOpEffect()
Method Detail

apply

public void apply(java.awt.image.BufferedImage buffer,
                  java.awt.Shape clip)
Performes some operations on the passed BufferedImage.

The effect may take into account the passed clip shape to speed the processing up.

Filters the passed image using clip and BufferedImageOps provided by getBufferedImageOps()

Parameters:
buffer - the BufferedImage to be processed
clip - the clip shape or null if the entire BufferedImage must be processed

getBufferedImageOps

protected java.awt.image.BufferedImageOp[] getBufferedImageOps()
Returns the array of BufferedImageOps specified for this LayerEffect.

Returns:
the array of BufferedImageOps specified for this LayerEffect