de.lessvoid.nifty.effects.impl
Class ChangeImage

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

public class ChangeImage
extends Object
implements EffectImpl

This can be applied to an image element. This will change the original image of the element to the image given in the "active" attribute. When the effect gets deactivated the image is being restored to the image given with the "inactive" attribute.

Author:
void

Constructor Summary
ChangeImage()
           
 
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

ChangeImage

public ChangeImage()
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.