public class SpringHelper
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
SpringHelper |
configBouncinessAndSpeed(double bounciness,
double speed) |
SpringHelper |
configTensionAndFriction(double tension,
double friction) |
static SpringHelper |
create(float startValue,
float endValue) |
static SpringHelper |
createWithBouncinessAndSpeed(float startValue,
float endValue,
double bounciness,
double speed) |
static SpringHelper |
createWithTensionAndFriction(float startValue,
float endValue,
double tension,
double friction) |
SpringHelper |
reboundListener(ReboundListener reboundListener) |
SpringHelper |
springListener(SpringListener springListener) |
void |
start() |
float |
transition(double progress,
float startValue,
float endValue) |
public static SpringHelper create(float startValue, float endValue)
public static SpringHelper createWithBouncinessAndSpeed(float startValue, float endValue, double bounciness, double speed)
public static SpringHelper createWithTensionAndFriction(float startValue, float endValue, double tension, double friction)
public SpringHelper configBouncinessAndSpeed(double bounciness, double speed)
public SpringHelper configTensionAndFriction(double tension, double friction)
public SpringHelper reboundListener(ReboundListener reboundListener)
public SpringHelper springListener(SpringListener springListener)
public void start()
public float transition(double progress,
float startValue,
float endValue)