de.lessvoid.nifty.effects
Class EffectProcessorImpl

java.lang.Object
  extended by de.lessvoid.nifty.effects.EffectProcessorImpl
All Implemented Interfaces:
EffectProcessor

public class EffectProcessorImpl
extends Object
implements EffectProcessor

An EffectProcessorImpl handles a single effect type. You can have multiple effects of the same type and all these effects are handled by a single EffectProcessorImpl instance.

Author:
void

Nested Class Summary
static interface EffectProcessorImpl.Notify
           
 
Constructor Summary
EffectProcessorImpl(EffectProcessorImpl.Notify notify, boolean neverStopRenderingParam)
           
 
Method Summary
 void activate(EndNotify newListener, String alternate, String customKey)
           
<T extends EffectImpl>
List<Effect>
getEffects(Class<T> requestedClass)
          Return a List of all Effects that use the given EffectImpl.
 void getRenderStatesToSave(NiftyRenderDeviceProxy renderDeviceProxy)
           
 String getStateString()
           
 boolean isActive()
           
 void processEndHover(int x, int y)
           
 void processHover(int x, int y)
           
 void processHoverDeactivate(int x, int y)
           
 void processStartHover(int x, int y)
           
 void registerEffect(Effect e)
           
 void removeAllEffects()
           
 void renderOverlay(NiftyRenderEngine renderDevice)
           
 void renderPost(NiftyRenderEngine renderDevice)
           
 void renderPre(NiftyRenderEngine renderDevice)
           
 void reset()
           
 void reset(String customKey)
           
 void restoreNeverStopRenderingEffects()
           
 void saveActiveNeverStopRenderingEffects()
           
 void setActive(boolean newActive)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffectProcessorImpl

public EffectProcessorImpl(EffectProcessorImpl.Notify notify,
                           boolean neverStopRenderingParam)
Method Detail

registerEffect

public void registerEffect(Effect e)
Specified by:
registerEffect in interface EffectProcessor

getRenderStatesToSave

public void getRenderStatesToSave(NiftyRenderDeviceProxy renderDeviceProxy)
Specified by:
getRenderStatesToSave in interface EffectProcessor

renderPre

public void renderPre(NiftyRenderEngine renderDevice)
Specified by:
renderPre in interface EffectProcessor

renderPost

public void renderPost(NiftyRenderEngine renderDevice)
Specified by:
renderPost in interface EffectProcessor

renderOverlay

public void renderOverlay(NiftyRenderEngine renderDevice)
Specified by:
renderOverlay in interface EffectProcessor

isActive

public boolean isActive()
Specified by:
isActive in interface EffectProcessor

saveActiveNeverStopRenderingEffects

public void saveActiveNeverStopRenderingEffects()
Specified by:
saveActiveNeverStopRenderingEffects in interface EffectProcessor

restoreNeverStopRenderingEffects

public void restoreNeverStopRenderingEffects()
Specified by:
restoreNeverStopRenderingEffects in interface EffectProcessor

reset

public void reset()
Specified by:
reset in interface EffectProcessor

reset

public void reset(String customKey)
Specified by:
reset in interface EffectProcessor

activate

public void activate(EndNotify newListener,
                     String alternate,
                     String customKey)
Specified by:
activate in interface EffectProcessor

getStateString

public String getStateString()
Specified by:
getStateString in interface EffectProcessor

setActive

public void setActive(boolean newActive)
Specified by:
setActive in interface EffectProcessor

processHover

public void processHover(int x,
                         int y)
Specified by:
processHover in interface EffectProcessor

processStartHover

public void processStartHover(int x,
                              int y)
Specified by:
processStartHover in interface EffectProcessor

processEndHover

public void processEndHover(int x,
                            int y)
Specified by:
processEndHover in interface EffectProcessor

processHoverDeactivate

public void processHoverDeactivate(int x,
                                   int y)
Specified by:
processHoverDeactivate in interface EffectProcessor

removeAllEffects

public void removeAllEffects()
Specified by:
removeAllEffects in interface EffectProcessor

getEffects

public <T extends EffectImpl> List<Effect> getEffects(Class<T> requestedClass)
Return a List of all Effects that use the given EffectImpl.

Specified by:
getEffects in interface EffectProcessor
Type Parameters:
T -
Parameters:
requestedClass -
Returns:


Copyright © 2012. All Rights Reserved.