public abstract class Transformation<T extends Transformation,S extends ITransformable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected long |
delay |
protected long |
duration |
protected long |
elapsedTimeCurrentLoop |
static int |
LINEAR |
protected long |
loopResetDelay |
protected int |
loops |
protected long |
loopStartDelay |
protected int |
movement |
protected boolean |
reversed |
static int |
SINUSOIDAL |
Constructor and Description |
---|
Transformation() |
Modifier and Type | Method and Description |
---|---|
protected float |
completion(long elapsedTime) |
T |
delay(int delay) |
protected abstract void |
doTransform(S transformable,
float comp) |
T |
forTicks(int duration) |
T |
forTicks(int duration,
int delay) |
long |
getDelay() |
long |
getDuration() |
long |
getLoopDuration() |
int |
getLoops() |
T |
loop(int loops) |
T |
loop(int loops,
int startDelay,
int resetDelay) |
T |
movement(int movement) |
T |
reversed(boolean reversed) |
long |
totalDuration() |
void |
transform(java.util.List<S> transformables,
long elapsedTime) |
void |
transform(S transformable,
long elapsedTime) |
public static final int LINEAR
public static final int SINUSOIDAL
protected int movement
protected long duration
protected long delay
protected int loops
protected long loopStartDelay
protected long loopResetDelay
protected long elapsedTimeCurrentLoop
protected boolean reversed
public T movement(int movement)
public T delay(int delay)
public T forTicks(int duration)
public T forTicks(int duration, int delay)
public long getDuration()
public long getDelay()
public int getLoops()
public long totalDuration()
public long getLoopDuration()
public T loop(int loops)
public T loop(int loops, int startDelay, int resetDelay)
public void transform(java.util.List<S> transformables, long elapsedTime)
public void transform(S transformable, long elapsedTime)
protected float completion(long elapsedTime)
public T reversed(boolean reversed)
protected abstract void doTransform(S transformable, float comp)