public class JFXAnimationTemplate<N> extends Object implements JFXTemplateConfig<N>, JFXTemplateBuilder<N>
JFXAnimationTemplate
. JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>
Modifier and Type | Method and Description |
---|---|
JFXTemplateConfig<N> |
action(Function<JFXAnimationTemplateAction.InitBuilder<N>,JFXAnimationTemplateAction.Builder<?,?>> valueBuilderFunction)
The action method is similar like a
KeyValue . |
JFXTemplateConfig<N> |
action(JFXAnimationTemplateAction.Builder<?,?> animationValueBuilder)
Same as the
JFXTemplateAction.action(Function) method but without the lazy behaviour and doesn't provide
a JFXAnimationTemplateAction.builder() instance. |
javafx.animation.Timeline |
build()
Same method as
JFXTemplateBuilder.build(Object) )} but takes no default animation object. |
<B> B |
build(Function<JFXAnimationTemplate<N>,B> builderFunction,
Function<JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>,JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>> mapBuilderFunction)
Method which handles a specific builder
Function which provides the JFXAnimationTemplate and should return a specific representation of the animation e.g. a
Timeline . |
<B> B |
build(Function<JFXAnimationTemplate<N>,B> builderFunction,
N defaultAnimationObject)
Same method as
JFXTemplateBuilder.build(Function, Function) but takes directly one default animation
object. |
javafx.animation.Timeline |
build(Function<JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>,JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>> mapBuilderFunction)
Same method as
JFXTemplateBuilder.build(Function, Function) but returns directly a Timeline
instance as specific animation representation. |
javafx.animation.Timeline |
build(N defaultAnimationObject)
Same method as
JFXTemplateBuilder.build(Function, Object) but returns directly a Timeline
instance as specific animation representation and takes a default animation object. |
Map<Double,List<JFXAnimationTemplateAction<?,?>>> |
buildAndGetAnimationValues() |
JFXAnimationTemplateConfig |
buildAndGetTemplateConfig() |
JFXTemplateBuilder<N> |
config(Function<JFXAnimationTemplateConfig.Builder,JFXAnimationTemplateConfig.Builder> configBuilderFunction)
The method provides via a
Function an config builder JFXAnimationTemplateConfig.builder() which holds all the specific methods. |
JFXTemplateBuilder<N> |
config(JFXAnimationTemplateConfig.Builder configBuilder)
Same as the
JFXTemplateConfig.config(Function) method but without the lazy behaviour and doesn't provide
a JFXAnimationTemplateConfig.builder() instance. |
static JFXTemplateProcess<javafx.scene.Node> |
create()
Same method as
create(Class) but with the default type Node . |
static <N> JFXTemplateProcess<N> |
create(Class<N> animationObjectType)
Create a
JFXTemplateProcess with a specific default animation type. |
JFXTemplateAction<N> |
from()
Defines a percentage value of 0 in the specific animation interval.
|
JFXTemplateAction<N> |
percent(double first,
double... rest)
Takes a percentage value or percentage values between 0 and 100 which defines the specific
animation interval.
|
JFXTemplateAction<N> |
to()
Defines a percentage value of 100 in the specific animation interval.
|
public static <N> JFXTemplateProcess<N> create(Class<N> animationObjectType)
JFXTemplateProcess
with a specific default animation type.JFXTemplateBuilder.build(Object)
method.JFXTemplateAction.action(Function)
methods.N
- the specific type.animationObjectType
- a specific animation object type.JFXTemplateProcess
instance.public static JFXTemplateProcess<javafx.scene.Node> create()
create(Class)
but with the default type Node
. This type is a
general default type in a JFXAnimationTemplate
.JFXTemplateProcess
instance.create(Class)
public Map<Double,List<JFXAnimationTemplateAction<?,?>>> buildAndGetAnimationValues()
public JFXAnimationTemplateConfig buildAndGetTemplateConfig()
public JFXTemplateAction<N> percent(double first, double... rest)
JFXTemplateProcess
percent
in interface JFXTemplateProcess<N>
first
- the percentage value.rest
- the percentage values.JFXTemplateAction
instance.public JFXTemplateAction<N> from()
JFXTemplateProcess
from
in interface JFXTemplateProcess<N>
JFXTemplateAction
instance.public JFXTemplateAction<N> to()
JFXTemplateProcess
to
in interface JFXTemplateProcess<N>
JFXTemplateAction
instance.public JFXTemplateConfig<N> action(Function<JFXAnimationTemplateAction.InitBuilder<N>,JFXAnimationTemplateAction.Builder<?,?>> valueBuilderFunction)
JFXTemplateAction
KeyValue
. Function
an action builder JFXAnimationTemplateAction.builder()
which holds all the specific methods.
.action(b -> b.target(Node::opacityProperty).endValue(0))
action
in interface JFXTemplateAction<N>
valueBuilderFunction
- a Function
which provides and accepts an JFXAnimationTemplateAction
builder.JFXTemplateConfig
instance.public JFXTemplateConfig<N> action(JFXAnimationTemplateAction.Builder<?,?> animationValueBuilder)
JFXTemplateAction
JFXTemplateAction.action(Function)
method but without the lazy behaviour and doesn't provide
a JFXAnimationTemplateAction.builder()
instance.action
in interface JFXTemplateAction<N>
animationValueBuilder
- the JFXAnimationTemplateAction.builder()
instance.JFXTemplateConfig
instance.JFXTemplateAction.action(Function)
public JFXTemplateBuilder<N> config(Function<JFXAnimationTemplateConfig.Builder,JFXAnimationTemplateConfig.Builder> configBuilderFunction)
JFXTemplateConfig
Function
an config builder JFXAnimationTemplateConfig.builder()
which holds all the specific methods. JFXAnimationTemplateConfig.builder()
methods represents the methods e.g. from a
Timeline
.
.config(b -> b.duration(Duration.seconds(2)).interpolator(Interpolator.EASE_BOTH))
config
in interface JFXTemplateConfig<N>
configBuilderFunction
- a Function
which provides and accepts an JFXAnimationTemplateConfig
builder.JFXTemplateBuilder
instance.public JFXTemplateBuilder<N> config(JFXAnimationTemplateConfig.Builder configBuilder)
JFXTemplateConfig
JFXTemplateConfig.config(Function)
method but without the lazy behaviour and doesn't provide
a JFXAnimationTemplateConfig.builder()
instance.config
in interface JFXTemplateConfig<N>
configBuilder
- the JFXAnimationTemplateConfig.builder()
instance.JFXTemplateBuilder
instance.JFXTemplateConfig.config(Function)
public <B> B build(Function<JFXAnimationTemplate<N>,B> builderFunction, Function<JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>,JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>> mapBuilderFunction)
JFXTemplateBuilder
Function
which provides the JFXAnimationTemplate
and should return a specific representation of the animation e.g. a
Timeline
. Function
which provides a JFXTemplateBuilder.JFXAnimationObjectMapBuilder
for defining the default animation objects and/or named animation
objects.build
in interface JFXTemplateBuilder<N>
B
- the specific animation representation type.builderFunction
- the builderFunction
for a specific representation of the
animation.mapBuilderFunction
- the builderFunction
for defining the default animation
objects and/or named animation objects.public <B> B build(Function<JFXAnimationTemplate<N>,B> builderFunction, N defaultAnimationObject)
JFXTemplateBuilder
JFXTemplateBuilder.build(Function, Function)
but takes directly one default animation
object.build
in interface JFXTemplateBuilder<N>
B
- the specific animation representation type.builderFunction
- the builderFunction
for a specific representation of the
animation.defaultAnimationObject
- the default animation object.JFXTemplateBuilder.build(Function, Function)
public javafx.animation.Timeline build(Function<JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>,JFXTemplateBuilder.JFXAnimationObjectMapBuilder<N>> mapBuilderFunction)
JFXTemplateBuilder
JFXTemplateBuilder.build(Function, Function)
but returns directly a Timeline
instance as specific animation representation.build
in interface JFXTemplateBuilder<N>
mapBuilderFunction
- the builderFunction
for defining the default animation
objects and/or named animation objects.Timeline
instance.JFXTemplateBuilder.build(Function, Function)
public javafx.animation.Timeline build(N defaultAnimationObject)
JFXTemplateBuilder
JFXTemplateBuilder.build(Function, Object)
but returns directly a Timeline
instance as specific animation representation and takes a default animation object.build
in interface JFXTemplateBuilder<N>
defaultAnimationObject
- the default animation object.Timeline
instance.JFXTemplateBuilder.build(Function, Object)
public javafx.animation.Timeline build()
JFXTemplateBuilder
JFXTemplateBuilder.build(Object)
)} but takes no default animation object.null
.build
in interface JFXTemplateBuilder<N>
Timeline
instance.