de.lessvoid.nifty.effects.impl
Class Gradient

java.lang.Object
  extended by de.lessvoid.nifty.effects.impl.Gradient
All Implemented Interfaces:
EffectImpl

public class Gradient
extends Object
implements EffectImpl

Color - color overlay.

Author:
void

Constructor Summary
Gradient()
           
 
Method Summary
 void activate(Nifty nifty, Element element, EffectProperties parameter)
          initialize effect.
 void deactivate()
          deactivate the effect.
 void execute(Element element, float normalizedTime, Falloff falloff, NiftyRenderEngine r)
          execute the effect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gradient

public Gradient()
Method Detail

activate

public void activate(Nifty nifty,
                     Element element,
                     EffectProperties parameter)
Description copied from interface: EffectImpl
initialize effect.

Specified by:
activate in interface EffectImpl
Parameters:
nifty - Nifty
element - Element
parameter - parameters

execute

public void execute(Element element,
                    float normalizedTime,
                    Falloff falloff,
                    NiftyRenderEngine r)
Description copied from interface: EffectImpl
execute the effect.

Specified by:
execute in interface EffectImpl
Parameters:
element - the Element
normalizedTime - current effect time
falloff - the Falloff class for hover effects. This is supposed to be null for none hover effects.
r - RenderDevice to use

deactivate

public void deactivate()
Description copied from interface: EffectImpl
deactivate the effect.

Specified by:
deactivate in interface EffectImpl


Copyright © 2011. All Rights Reserved.