de.lessvoid.nifty.effects
Interface EffectImpl

All Known Implementing Classes:
AlphaHide, AutoScroll, BlendMode, Border, ChangeFont, ChangeImage, ChangeMouseCursor, Clip, ColorBar, ColorPulsate, Fade, FadeMusic, FadeSound, Focus, FollowMouse, Gradient, Hide, Hint, ImageOverlay, ImageOverlayPulsate, ImageSize, ImageSizePulsate, Move, Nop, PlaySound, Pulsate, Remote, RenderElement, RenderQuad, RestoreState, SaveState, Shake, Show, SimpleHint, TextColor, TextColorAnimated, TextSize, TextSizePulsate

public interface EffectImpl

Effect Implementation ... here is the actual fun :>

Author:
void

Method Summary
 void activate(Nifty nifty, Element element, EffectProperties parameter)
          initialize effect.
 void deactivate()
          deactivate the effect.
 void execute(Element element, float effectTime, Falloff falloff, NiftyRenderEngine r)
          execute the effect.
 

Method Detail

activate

void activate(Nifty nifty,
              Element element,
              EffectProperties parameter)
initialize effect.

Parameters:
nifty - Nifty
element - Element
parameter - parameters

execute

void execute(Element element,
             float effectTime,
             Falloff falloff,
             NiftyRenderEngine r)
execute the effect.

Parameters:
element - the Element
effectTime - 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

void deactivate()
deactivate the effect.



Copyright © 2011. All Rights Reserved.