public static final class JFXAnimationTemplateAction.InitBuilder<N> extends Object
Modifier and Type | Method and Description |
---|---|
JFXAnimationTemplateAction.Builder<N,?> |
executeWhen(boolean animateWhen) |
JFXAnimationTemplateAction.Builder<N,?> |
executeWhen(Predicate<N> executeWhenPredicate) |
JFXAnimationTemplateAction.Builder<N,?> |
executions(Function<N,Integer> executionsFunction) |
JFXAnimationTemplateAction.Builder<N,?> |
executions(int executions) |
JFXAnimationTemplateAction.Builder<N,?> |
ignore() |
JFXAnimationTemplateAction.Builder<N,?> |
onFinish(BiConsumer<N,javafx.event.ActionEvent> onFinish) |
<T> JFXAnimationTemplateAction.Builder<N,T> |
target(Function<N,javafx.beans.value.WritableValue<T>> targetFunction,
Function<N,javafx.beans.value.WritableValue<T>>... targetFunctions)
The lazy version of
target(WritableValue, WritableValue[]) which is computed when
the JFXAnimationTemplateAction is build. |
<T> JFXAnimationTemplateAction.Builder<N,T> |
target(javafx.beans.value.WritableValue<T> target,
javafx.beans.value.WritableValue<T>... targets)
The target or targets of the interpolation.
|
<T> JFXAnimationTemplateAction.InitBuilder<T> |
withAnimationObject(Class<T> clazz,
String animationObjectName,
String... animationObjectNames)
Call named animation objects with a specific
Class type and a name. |
JFXAnimationTemplateAction.InitBuilder<javafx.scene.Node> |
withAnimationObject(String animationObjectName,
String... animationObjectNames)
Same as
withAnimationObject(Class, String, String...) but with a default type Node . |
@SafeVarargs public final <T> JFXAnimationTemplateAction.Builder<N,T> target(javafx.beans.value.WritableValue<T> target, javafx.beans.value.WritableValue<T>... targets)
T
- the target WritableValue
type.target
- the interpolation target.targets
- the interpolation targets.JFXAnimationTemplateAction.Builder
instance.@SafeVarargs public final <T> JFXAnimationTemplateAction.Builder<N,T> target(Function<N,javafx.beans.value.WritableValue<T>> targetFunction, Function<N,javafx.beans.value.WritableValue<T>>... targetFunctions)
target(WritableValue, WritableValue[])
which is computed when
the JFXAnimationTemplateAction
is build.Function
provides also a reference of the current animation object.T
- the target WritableValue
type.targetFunction
- the interpolation target.targetFunctions
- the interpolation targets.JFXAnimationTemplateAction.Builder
instance.public final JFXAnimationTemplateAction.Builder<N,?> executeWhen(boolean animateWhen)
public final JFXAnimationTemplateAction.Builder<N,?> executeWhen(Predicate<N> executeWhenPredicate)
public JFXAnimationTemplateAction.Builder<N,?> ignore()
public JFXAnimationTemplateAction.Builder<N,?> onFinish(BiConsumer<N,javafx.event.ActionEvent> onFinish)
public JFXAnimationTemplateAction.Builder<N,?> executions(Function<N,Integer> executionsFunction)
public JFXAnimationTemplateAction.Builder<N,?> executions(int executions)
public <T> JFXAnimationTemplateAction.InitBuilder<T> withAnimationObject(Class<T> clazz, String animationObjectName, String... animationObjectNames)
Class
type and a name.JFXAnimationTemplate
is build.T
- the specific named animation object type.clazz
- the specific type of the named animation objects.animationObjectName
- the named animation object name.animationObjectNames
- the named animation object names.JFXAnimationTemplateAction.InitBuilder
instance.public JFXAnimationTemplateAction.InitBuilder<javafx.scene.Node> withAnimationObject(String animationObjectName, String... animationObjectNames)
withAnimationObject(Class, String, String...)
but with a default type Node
.animationObjectName
- the named animation object name.animationObjectNames
- the named animation object names.JFXAnimationTemplateAction.InitBuilder
instance.withAnimationObject(Class, String, String...)