public static final class JFXAnimationTemplateAction.Builder<N,T> extends Object
Modifier and Type | Method and Description |
---|---|
JFXAnimationTemplateAction<N,T> |
build() |
JFXAnimationTemplateAction<N,T> |
build(Function<Collection<String>,Object> buildFunction) |
Stream<JFXAnimationTemplateAction<N,T>> |
buildActions(Function<Collection<String>,Collection<Object>> buildFunction) |
JFXAnimationTemplateAction.Builder<N,T> |
endValue(Function<N,T> endValueFunction)
The lazy version of
endValue(Object) which is computed when the JFXAnimationTemplateAction is build. |
JFXAnimationTemplateAction.Builder<N,T> |
endValue(T endValue)
The end value of the interpolation.
|
JFXAnimationTemplateAction.Builder<N,T> |
executeWhen(boolean executeWhen)
Executes the
JFXTemplateAction if the condition is true. |
JFXAnimationTemplateAction.Builder<N,T> |
executeWhen(Predicate<N> executeWhenPredicate)
The lazy version of
executeWhen(boolean) which is computed when the JFXAnimationTemplateAction is build. |
JFXAnimationTemplateAction.Builder<N,T> |
executions(Function<N,Integer> executionsFunction)
The lazy version of
executions(int) which is computed when the JFXAnimationTemplateAction is build. |
JFXAnimationTemplateAction.Builder<N,T> |
executions(int executions)
Executes the current
JFXTemplateAction N times, until the given number of executions
is reached. |
JFXAnimationTemplateAction.Builder<N,T> |
ignore()
Ignores the current
JFXTemplateAction so the action is never executed. |
JFXAnimationTemplateAction.Builder<N,T> |
interpolator(Function<N,javafx.animation.Interpolator> interpolatorFunction)
The lazy version of
interpolator(Interpolator) which is computed when the JFXAnimationTemplateAction is build. |
JFXAnimationTemplateAction.Builder<N,T> |
interpolator(javafx.animation.Interpolator interpolator)
The
Interpolator of the animation. |
JFXAnimationTemplateAction.Builder<N,T> |
onFinish(BiConsumer<N,javafx.event.ActionEvent> onFinish)
The on finish
ActionEvent which is executed at the end of the current JFXTemplateAction . |
public JFXAnimationTemplateAction.Builder<N,T> endValue(T endValue)
endValue
- the end value.JFXAnimationTemplateAction.Builder
instance.public JFXAnimationTemplateAction.Builder<N,T> endValue(Function<N,T> endValueFunction)
endValue(Object)
which is computed when the JFXAnimationTemplateAction
is build.Function
provides also a reference of the current animation object.endValueFunction
- the end value Function
.JFXAnimationTemplateAction.Builder
instance.endValue(Object)
public JFXAnimationTemplateAction.Builder<N,T> interpolator(javafx.animation.Interpolator interpolator)
Interpolator
of the animation.interpolator
- the Interpolator
.JFXAnimationTemplateAction.Builder
instance.public JFXAnimationTemplateAction.Builder<N,T> interpolator(Function<N,javafx.animation.Interpolator> interpolatorFunction)
interpolator(Interpolator)
which is computed when the JFXAnimationTemplateAction
is build.Function
provides also a reference of the current animation object.interpolatorFunction
- the interpolator Function
.JFXAnimationTemplateAction.Builder
instance.interpolator(Interpolator)
public JFXAnimationTemplateAction.Builder<N,T> executeWhen(boolean executeWhen)
JFXTemplateAction
if the condition is true.executeWhen
- the execute condition.JFXAnimationTemplateAction.Builder
instance.public JFXAnimationTemplateAction.Builder<N,T> executeWhen(Predicate<N> executeWhenPredicate)
executeWhen(boolean)
which is computed when the JFXAnimationTemplateAction
is build.Predicate
provides also a reference of the current animation object.executeWhenPredicate
- the condition Predicate
.JFXAnimationTemplateAction.Builder
instance.executeWhen(boolean)
public JFXAnimationTemplateAction.Builder<N,T> ignore()
JFXTemplateAction
so the action is never executed.JFXAnimationTemplateAction.Builder
instance.public JFXAnimationTemplateAction.Builder<N,T> onFinish(BiConsumer<N,javafx.event.ActionEvent> onFinish)
ActionEvent
which is executed at the end of the current JFXTemplateAction
. BiConsumer
provides beside the ActionEvent
also a reference of the
current animation object.onFinish
- the on finish ActionEvent
.JFXAnimationTemplateAction.Builder
instance.public JFXAnimationTemplateAction.Builder<N,T> executions(Function<N,Integer> executionsFunction)
executions(int)
which is computed when the JFXAnimationTemplateAction
is build.Function
provides also a reference of the current animation object.executionsFunction
- the number of executions Function
.JFXAnimationTemplateAction.Builder
instance.executions(int)
public JFXAnimationTemplateAction.Builder<N,T> executions(int executions)
JFXTemplateAction
N times, until the given number of executions
is reached.executions
- the number of executions.JFXAnimationTemplateAction.Builder
instance.public JFXAnimationTemplateAction<N,T> build(Function<Collection<String>,Object> buildFunction)
public Stream<JFXAnimationTemplateAction<N,T>> buildActions(Function<Collection<String>,Collection<Object>> buildFunction)
public JFXAnimationTemplateAction<N,T> build()