public abstract class Transition extends Object
TransitionSet
s and Transition.TransitionUnit
s can be composed with each other. It's
abstract because before Java 8, static methods on interfaces are not allowed.Modifier and Type | Class and Description |
---|---|
static class |
Transition.AnimationTarget
Specifies what components and properties a Transition should target.
|
static class |
Transition.ComponentTarget
Specifies the component(s) a Transition should target.
|
static class |
Transition.PropertyTarget
Specifies the property(s) a Transition should target.
|
static class |
Transition.SpringTransitionAnimator
Creates spring-driven animations.
|
static class |
Transition.TimingTransitionAnimator
Creates timing-driven animations with the given duration.
|
static interface |
Transition.TransitionAnimator
Class that knows how to create a
TransitionAnimationBinding given a
PropertyAnimation . |
static class |
Transition.TransitionUnit |
static class |
Transition.TransitionUnitsBuilder |
Constructor and Description |
---|
Transition() |
Modifier and Type | Method and Description |
---|---|
static Transition.ComponentTarget |
allKeys() |
static Transition.PropertyTarget |
allProperties() |
static Transition.TransitionUnitsBuilder |
create(String... keys)
Creates a Transition for the components with the given transition keys.
|
static Transition.TransitionUnitsBuilder |
create(String key)
Creates a Transition for the component with the given transition key.
|
static Transition.TransitionUnitsBuilder |
create(Transition.ComponentTarget target)
Creates a Transition for the components targeted by the given
Transition.ComponentTarget . |
static <T extends Transition> |
parallel(T... transitions)
Creates a set of
Transition s that will run in parallel. |
static <T extends Transition> |
sequence(T... transitions)
Creates a sequence of
Transition s that will run one after another. |
static Transition.TransitionAnimator |
springWithConfig(double tension,
double friction)
Creates a
SpringTransition with the given tension and friction. |
static <T extends Transition> |
stagger(int staggerMs,
T... transitions)
Creates a set of
Transition s that will run in parallel but starting on a stagger. |
static Transition.TransitionAnimator |
timing(int durationMs)
Creates a
TimingTransition with the given duration. |
public static Transition.ComponentTarget allKeys()
public static Transition.PropertyTarget allProperties()
public static Transition.TransitionUnitsBuilder create(String key)
public static Transition.TransitionUnitsBuilder create(String... keys)
public static Transition.TransitionUnitsBuilder create(Transition.ComponentTarget target)
Transition.ComponentTarget
.public static <T extends Transition> TransitionSet parallel(T... transitions)
Transition
s that will run in parallel.public static <T extends Transition> TransitionSet stagger(int staggerMs, T... transitions)
Transition
s that will run in parallel but starting on a stagger.public static <T extends Transition> TransitionSet sequence(T... transitions)
Transition
s that will run one after another.public static Transition.TransitionAnimator springWithConfig(double tension, double friction)
SpringTransition
with the given tension and friction.public static Transition.TransitionAnimator timing(int durationMs)
TimingTransition
with the given duration.