public class SpringTransition extends TransitionAnimationBinding
PropertyAnimation on a spring.| Constructor and Description |
|---|
SpringTransition(PropertyAnimation propertyAnimation) |
SpringTransition(PropertyAnimation propertyAnimation,
SpringConfig springConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AnimationBindingListener animationBindingListener)
Adds a
AnimationBindingListener. |
void |
collectTransitioningProperties(ArrayList<PropertyAnimation> outList)
Collects the set of
PropertyAnimations that this animation will animate. |
Object |
getTag()
Allows adding a tags that can also be used to store data without resorting to another data
structure.
|
void |
removeListener(AnimationBindingListener animationBindingListener)
Removes a previously added
AnimationBindingListener. |
void |
setTag(Object tag) |
protected void |
setupBinding(Resolver resolver)
Subclasses should set up their animation by creating a graph that defines how data will flow to
relevant
AnimatedPropertyNodes. |
addBinding, addBinding, isActive, prepareToStartLater, start, stoppublic SpringTransition(PropertyAnimation propertyAnimation, SpringConfig springConfig)
public SpringTransition(PropertyAnimation propertyAnimation)
public void collectTransitioningProperties(ArrayList<PropertyAnimation> outList)
AnimationBindingPropertyAnimations that this animation will animate. This is used
to make sure before/after values are recorded and accessible for the animation. Implementations
should add their animating properties to this set.
Note: This is a 'collect' call instead of a getter to allocating more sets then necessary for animations with nested animation (e.g. a sequence of animations). Yay Java.
protected void setupBinding(Resolver resolver)
TransitionAnimationBindingAnimatedPropertyNodes.setupBinding in class TransitionAnimationBindingpublic final void addListener(AnimationBindingListener animationBindingListener)
AnimationBindingAnimationBindingListener.addListener in interface AnimationBindingpublic final void removeListener(AnimationBindingListener animationBindingListener)
AnimationBindingAnimationBindingListener.removeListener in interface AnimationBindingpublic Object getTag()
AnimationBindinggetTag in interface AnimationBindingpublic void setTag(Object tag)
setTag in interface AnimationBinding