org.xith3d.schedops.properties
Class BrightnessFadeOutManager

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

public class BrightnessFadeOutManager
extends ValueInterpolator

The BrightnessFadeOutManager manipulates the brightness to fade to black.


Constructor Summary
BrightnessFadeOutManager(Canvas3D canvas, OperationScheduler opScheder, long fadeTime, float startBrightness, float gamma, float contrast)
           
 
Method Summary
protected  void applyValue(float value)
          This method is invoked each time slice.
static void fade(Canvas3D canvas, OperationScheduler opScheder, long fadeTime, float startBrightness, float gamma, float contrast)
           
 
Methods inherited from class org.xith3d.schedops.properties.ValueInterpolator
applyNormValue, getDeltaValue, getEndValue, getStartTime, getStartValue, getTotalTime, onInterpolationFinished, 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

BrightnessFadeOutManager

public BrightnessFadeOutManager(Canvas3D canvas,
                                OperationScheduler opScheder,
                                long fadeTime,
                                float startBrightness,
                                float gamma,
                                float contrast)
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

fade

public static void fade(Canvas3D canvas,
                        OperationScheduler opScheder,
                        long fadeTime,
                        float startBrightness,
                        float gamma,
                        float contrast)