public interface SpringListener
Modifier and Type | Method and Description |
---|---|
void |
onSpringActivate(Spring spring)
called whenever the spring leaves its resting state
|
void |
onSpringAtRest(Spring spring)
called whenever the spring achieves a resting state
|
void |
onSpringEndStateChange(Spring spring)
called whenever the spring notifies of displacement state changes
|
void |
onSpringUpdate(Spring spring)
called whenever the spring is updated
|
void onSpringUpdate(Spring spring)
spring
- the Spring sending the updatevoid onSpringAtRest(Spring spring)
spring
- the spring that's now restingvoid onSpringActivate(Spring spring)
spring
- the spring that has left its resting statevoid onSpringEndStateChange(Spring spring)
spring
- the spring whose end state has changed