Modifier and Type | Field and Description |
---|---|
protected float |
decelerationFactor
The deceleration factor.
|
protected FadeStep |
delegate
Delegate.
|
Constructor and Description |
---|
FadeDecelerationStep(FadeStep delegate,
float decelerationFactor)
Creates an decelerated implementation.
|
Modifier and Type | Method and Description |
---|---|
float |
getNextStep(FadeKind fadeKind,
float currFadePosition,
boolean isFadeIn,
boolean isLooping)
Returns the next fade cycle step.
|
protected FadeStep delegate
protected float decelerationFactor
public FadeDecelerationStep(FadeStep delegate, float decelerationFactor)
delegate
- Delegate.decelerationFactor
- Deceleration factor.public float getNextStep(FadeKind fadeKind, float currFadePosition, boolean isFadeIn, boolean isLooping)
FadeStep
getNextStep
in interface FadeStep
fadeKind
- Fade kind.currFadePosition
- Current fade position - guaranteed to be in 0.0-1.0 range.isFadeIn
- If true
, the current fade cycle is fading in.isLooping
- If true
, the fade is looping.