org.xith3d.utility.hud
Class HUDFadeOutHandler

java.lang.Object
  extended by org.xith3d.loop.opscheduler.Interval
      extended by org.xith3d.schedops.properties.ValueInterpolator
          extended by org.xith3d.utility.hud.HUDFadeOutHandler
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject

public class HUDFadeOutHandler
extends ValueInterpolator

The HUDFadeOutHandler covers the HUD with a black Image and fades to black.


Constructor Summary
HUDFadeOutHandler(HUD hud, OperationScheduler opScheder, long fadeTime)
           
HUDFadeOutHandler(HUD hud, OperationScheduler opScheder, long fadeTime, org.openmali.vecmath2.Colorf color)
           
 
Method Summary
protected  void applyValue(float value)
          This method is invoked each time slice.
static void fade(HUD hud, OperationScheduler opScheder, long fadeTime)
           
static void fade(HUD hud, OperationScheduler opScheder, long fadeTime, org.openmali.vecmath2.Colorf color)
           
protected  void onInterpolationFinished()
          This method is invoked, when the interpolation has reached its final value.
 
Methods inherited from class org.xith3d.schedops.properties.ValueInterpolator
applyNormValue, getDeltaValue, getEndValue, getStartTime, getStartValue, getTotalTime, onIntervalHit, onIntervalStarted
 
Methods inherited from class org.xith3d.loop.opscheduler.Interval
check, getInterval, getName, isAlive, kill, revive, setInterval, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HUDFadeOutHandler

public HUDFadeOutHandler(HUD hud,
                         OperationScheduler opScheder,
                         long fadeTime,
                         org.openmali.vecmath2.Colorf color)

HUDFadeOutHandler

public HUDFadeOutHandler(HUD hud,
                         OperationScheduler opScheder,
                         long fadeTime)
Method Detail

applyValue

protected void applyValue(float value)
This method is invoked each time slice. Override it to do someting useful with the normalized value.

Specified by:
applyValue in class ValueInterpolator

onInterpolationFinished

protected void onInterpolationFinished()
This method is invoked, when the interpolation has reached its final value.

Overrides:
onInterpolationFinished in class ValueInterpolator

fade

public static void fade(HUD hud,
                        OperationScheduler opScheder,
                        long fadeTime,
                        org.openmali.vecmath2.Colorf color)

fade

public static void fade(HUD hud,
                        OperationScheduler opScheder,
                        long fadeTime)