synergynetframework.appsystem.table.animationsystem.animelements
Class Fader

java.lang.Object
  extended by synergynetframework.appsystem.table.animationsystem.AnimationElement
      extended by synergynetframework.appsystem.table.animationsystem.animelements.Fader

public class Fader
extends AnimationElement

The Class Fader.


Field Summary
static int MODE_FADE_IN
          The Constant MODE_FADE_IN.
static int MODE_FADE_OUT
          The Constant MODE_FADE_OUT.
 
Constructor Summary
Fader(com.jme.scene.Geometry g, int modeFadeIn, float durationSeconds)
          Instantiates a new fader.
Fader(com.jme.scene.Geometry g, int modeFadeIn, float durationSeconds, float thenWaitSeconds)
          Instantiates a new fader.
Fader(java.util.List<com.jme.scene.Geometry> spatials, int fadeMode, float durationSeconds)
          Instantiates a new fader.
Fader(java.util.List<com.jme.scene.Geometry> spatials, int fadeMode, float durationSeconds, float thenWaitSeconds)
          Instantiates a new fader.
 
Method Summary
static java.util.List<com.jme.scene.Geometry> createListFromGeometry(com.jme.scene.Geometry... g)
          Creates the list from geometry.
 void elementStart(float tpf)
          Element start.
 boolean isFinished()
          Checks if is finished.
 void reset()
          Reset.
 void setFadeDuration(float seconds)
          Sets the fade duration.
 void updateAnimationState(float tpf)
          Update animation state.
 
Methods inherited from class synergynetframework.appsystem.table.animationsystem.AnimationElement
enable, toString, updateState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MODE_FADE_IN

public static final int MODE_FADE_IN
The Constant MODE_FADE_IN.

See Also:
Constant Field Values

MODE_FADE_OUT

public static final int MODE_FADE_OUT
The Constant MODE_FADE_OUT.

See Also:
Constant Field Values
Constructor Detail

Fader

public Fader(com.jme.scene.Geometry g,
             int modeFadeIn,
             float durationSeconds)
Instantiates a new fader.

Parameters:
g - the g
modeFadeIn - the mode fade in
durationSeconds - the duration seconds

Fader

public Fader(com.jme.scene.Geometry g,
             int modeFadeIn,
             float durationSeconds,
             float thenWaitSeconds)
Instantiates a new fader.

Parameters:
g - the g
modeFadeIn - the mode fade in
durationSeconds - the duration seconds
thenWaitSeconds - the then wait seconds

Fader

public Fader(java.util.List<com.jme.scene.Geometry> spatials,
             int fadeMode,
             float durationSeconds)
Instantiates a new fader.

Parameters:
spatials - the spatials
fadeMode - the fade mode
durationSeconds - the duration seconds

Fader

public Fader(java.util.List<com.jme.scene.Geometry> spatials,
             int fadeMode,
             float durationSeconds,
             float thenWaitSeconds)
Instantiates a new fader.

Parameters:
spatials - the spatials
fadeMode - the fade mode
durationSeconds - the duration seconds
thenWaitSeconds - the then wait seconds
Method Detail

createListFromGeometry

public static java.util.List<com.jme.scene.Geometry> createListFromGeometry(com.jme.scene.Geometry... g)
Creates the list from geometry.

Parameters:
g - the g
Returns:
the list

elementStart

public void elementStart(float tpf)
Description copied from class: AnimationElement
Element start.

Specified by:
elementStart in class AnimationElement
Parameters:
tpf - the tpf

isFinished

public boolean isFinished()
Description copied from class: AnimationElement
Checks if is finished.

Specified by:
isFinished in class AnimationElement
Returns:
true, if is finished

reset

public void reset()
Description copied from class: AnimationElement
Reset.

Specified by:
reset in class AnimationElement

setFadeDuration

public void setFadeDuration(float seconds)
Sets the fade duration.

Parameters:
seconds - the new fade duration

updateAnimationState

public void updateAnimationState(float tpf)
Description copied from class: AnimationElement
Update animation state.

Specified by:
updateAnimationState in class AnimationElement
Parameters:
tpf - the tpf