de.enough.polish.ui
Class RgbEffect

java.lang.Object
  extended by de.enough.polish.ui.RgbEffect
Direct Known Subclasses:
RotateRgbEffect

public abstract class RgbEffect
extends java.lang.Object

Applies an effect to an RGB array.

Copyright Enough Software 2006 - 2008

 history
        Jun 14, 2006 - rob creation
 

Author:
Robert Virkus, j2mepolish@enough.de

Constructor Summary
RgbEffect()
           
 
Method Summary
abstract  void renderEffect(RgbImage image)
          Renders the effect on the given RGB array.
 void setStyle(Style style)
          Allows the subclasses to acquire necessary settings by querying the CSS style.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RgbEffect

public RgbEffect()
Method Detail

renderEffect

public abstract void renderEffect(RgbImage image)
Renders the effect on the given RGB array. It is explicitely allowed that the effect is returning the given RGB array instead of creating a new one.

Parameters:
image - RgbImage containing an integer array containing the (A)RGB data, on which the effect should be applied.

setStyle

public void setStyle(Style style)
Allows the subclasses to acquire necessary settings by querying the CSS style. When overriding, methods should call super.setStyle(style) first.

Parameters:
style - the style