public class Tweens
extends java.lang.Object
Constructor and Description |
---|
Tweens() |
Modifier and Type | Method and Description |
---|---|
static Tween |
callMethod(java.lang.Object target,
java.lang.String method,
java.lang.Object... args)
Creates a Tween that will call the specified method and optional arguments
whenever supplied a time value greater than or equal to 0.
|
static Tween |
callTweenMethod(double length,
java.lang.Object target,
java.lang.String method,
java.lang.Object... args)
Creates a Tween that will call the specified method and optional arguments,
including the time value scaled between 0 and 1.
|
static Tween |
delay(double length)
Creates a tween that will perform a no-op until the length
has expired.
|
static Tween |
parallel(Tween... delegates)
Creates a tween that will interpolate over an entire list
of tweens in parallel, ie: all tweens will be run at the same
time.
|
static Tween |
sequence(Tween... delegates)
Creates a tween that will interpolate over an entire sequence
of tweens in order.
|
static Tween |
sineStep(Tween... delegates)
Creates a tween that uses a sine function to smooth step the time value
for the specified delegate tween or tweens.
|
static Tween |
smoothStep(Tween... delegates)
Creates a tween that uses a hermite function to smooth step the time value
for the specified delegate tween or tweens.
|
static Tween |
stretch(double desiredLength,
Tween... delegates)
Creates a tween that scales the specified delegate tween or tweens
to the desired length.
|
public static Tween sequence(Tween... delegates)
public static Tween parallel(Tween... delegates)
public static Tween delay(double length)
public static Tween stretch(double desiredLength, Tween... delegates)
public static Tween sineStep(Tween... delegates)
public static Tween smoothStep(Tween... delegates)
public static Tween callMethod(java.lang.Object target, java.lang.String method, java.lang.Object... args)
public static Tween callTweenMethod(double length, java.lang.Object target, java.lang.String method, java.lang.Object... args)
For example:
Tweens.callTweenMethod(1, myObject, "foo", "bar")
Would work for any of the following method signatures:
void foo( float t, String arg ) void foo( double t, String arg ) void foo( String arg, float t ) void foo( String arg, double t )