public class AlphaTransform extends Transformation<AlphaTransform,ITransformable.Alpha>
| Modifier and Type | Field and Description |
|---|---|
protected int |
fromAlpha
Starting alpha.
|
protected int |
toAlpha
Target alpha.
|
delay, duration, elapsedTimeCurrentLoop, LINEAR, loopResetDelay, loops, loopStartDelay, movement, reversed, SINUSOIDAL| Constructor and Description |
|---|
AlphaTransform(int fromAlpa,
int toAlpha)
Instantiates a new
AlphaTransform. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTransform(ITransformable.Alpha transformable,
float comp)
Calculates the transformation.
|
AlphaTransform |
from(int alpha)
Sets the starting alpha for this
AlphaTransform. |
AlphaTransform |
self()
Gets this
AlphaTransform. |
AlphaTransform |
to(int alpha)
Sets the target alpha for this
AlphaTransform. |
completion, delay, forTicks, forTicks, getDelay, getDuration, getLoopDuration, getLoops, loop, loop, movement, reversed, totalDuration, transform, transformprotected int fromAlpha
protected int toAlpha
public AlphaTransform(int fromAlpa,
int toAlpha)
AlphaTransform.fromAlpa - the from alpatoAlpha - the to alphapublic AlphaTransform self()
AlphaTransform.self in class Transformation<AlphaTransform,ITransformable.Alpha>public AlphaTransform from(int alpha)
AlphaTransform.alpha - the alphapublic AlphaTransform to(int alpha)
AlphaTransform.alpha - the alphaprotected void doTransform(ITransformable.Alpha transformable, float comp)
doTransform in class Transformation<AlphaTransform,ITransformable.Alpha>transformable - the transformablecomp - the comp