org.jdesktop.jxlayer.plaf.effect
Interface Effect

All Superinterfaces:
LayerItem
All Known Implementing Classes:
AbstractEffect, AbstractImageOpEffect, ImageOpEffect

public interface Effect
extends LayerItem

This interface represents an abstract type which performes some operations on the BufferedImage.

See Also:
AbstractEffect, ImageOpEffect

Method Summary
 void apply(java.awt.image.BufferedImage buf, java.awt.Shape clip)
          Performes some operations on the passed BufferedImage.
 
Methods inherited from interface org.jdesktop.jxlayer.item.LayerItem
addLayerItemListener, getLayerItemListeners, isEnabled, removeLayerItemListener
 

Method Detail

apply

void apply(java.awt.image.BufferedImage buf,
           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.

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