public static final class JFXAnimationTemplateConfig.Builder extends Object
Modifier and Type | Method and Description |
---|---|
JFXAnimationTemplateConfig.Builder |
autoReverse(boolean reverse)
After the first cycle the animation is played backwards and after this again forwards.
|
JFXAnimationTemplateConfig.Builder |
autoReverse(Supplier<Boolean> reverseSupplier)
The lazy version of
autoReverse(boolean) which is computed when the JFXAnimationTemplateConfig is build. |
JFXAnimationTemplateConfig |
build() |
JFXAnimationTemplateConfig.Builder |
cycleCount(int cycleCount)
Defines the number of cycles in this animation.
|
JFXAnimationTemplateConfig.Builder |
cycleCount(Supplier<Integer> cycleCountSupplier)
The lazy version of
cycleCount(int) which is computed when the JFXAnimationTemplateConfig is build. |
JFXAnimationTemplateConfig.Builder |
delay(javafx.util.Duration delay)
Delays the start of an animation.
|
JFXAnimationTemplateConfig.Builder |
delay(Supplier<javafx.util.Duration> delaySupplier)
The lazy version of
delay(Duration) which is computed when the JFXAnimationTemplateConfig is build. |
JFXAnimationTemplateConfig.Builder |
duration(javafx.util.Duration duration)
The total
Duration of this animation. |
JFXAnimationTemplateConfig.Builder |
duration(Supplier<javafx.util.Duration> durationSupplier)
The lazy version of
duration(Duration) which is computed when the JFXAnimationTemplateConfig is build. |
JFXAnimationTemplateConfig.Builder |
infiniteCycle()
A
Animation.INDEFINITE count of cycles in this animation. |
JFXAnimationTemplateConfig.Builder |
interpolator(javafx.animation.Interpolator interpolator)
The global
Interpolator which is set to all JFXTemplateAction s without a
defined Interpolator with JFXAnimationTemplateAction.Builder.interpolator(Interpolator) . |
JFXAnimationTemplateConfig.Builder |
interpolator(Supplier<javafx.animation.Interpolator> interpolatorSupplier)
The lazy version of
interpolator(Interpolator) which is computed when the JFXAnimationTemplateConfig is build. |
JFXAnimationTemplateConfig.Builder |
onFinish(javafx.event.EventHandler<javafx.event.ActionEvent> onFinish)
The action to be executed at the conclusion of this animation.
|
JFXAnimationTemplateConfig.Builder |
rate(double rate)
Defines the direction/speed at which the animation is expected to be played.
|
JFXAnimationTemplateConfig.Builder |
rate(Supplier<Double> rateSupplier)
The lazy version of
rate(double) which is computed when the JFXAnimationTemplateConfig is build. |
public JFXAnimationTemplateConfig.Builder duration(javafx.util.Duration duration)
Duration
of this animation.duration
- the animation Duration
.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder duration(Supplier<javafx.util.Duration> durationSupplier)
duration(Duration)
which is computed when the JFXAnimationTemplateConfig
is build.durationSupplier
- the animation Duration
Supplier
.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder cycleCount(int cycleCount)
cycleCount
- the number of cycles.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder cycleCount(Supplier<Integer> cycleCountSupplier)
cycleCount(int)
which is computed when the JFXAnimationTemplateConfig
is build.cycleCountSupplier
- the number of cycles Supplier
.JFXAnimationTemplateConfig.Builder
instance.cycleCount(int)
public JFXAnimationTemplateConfig.Builder infiniteCycle()
Animation.INDEFINITE
count of cycles in this animation.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder autoReverse(boolean reverse)
reverse
- the reverse boolean.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder autoReverse(Supplier<Boolean> reverseSupplier)
autoReverse(boolean)
which is computed when the JFXAnimationTemplateConfig
is build.reverseSupplier
- the reverse boolean Supplier
.JFXAnimationTemplateConfig.Builder
instance.autoReverse(boolean)
public JFXAnimationTemplateConfig.Builder interpolator(javafx.animation.Interpolator interpolator)
Interpolator
which is set to all JFXTemplateAction
s without a
defined Interpolator
with JFXAnimationTemplateAction.Builder.interpolator(Interpolator)
.interpolator
- the global Interpolator
.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder interpolator(Supplier<javafx.animation.Interpolator> interpolatorSupplier)
interpolator(Interpolator)
which is computed when the JFXAnimationTemplateConfig
is build.interpolatorSupplier
- the global Interpolator
Supplier
.JFXAnimationTemplateConfig.Builder
instance.interpolator(Interpolator)
public JFXAnimationTemplateConfig.Builder delay(javafx.util.Duration delay)
delay
- the delay Duration
.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder delay(Supplier<javafx.util.Duration> delaySupplier)
delay(Duration)
which is computed when the JFXAnimationTemplateConfig
is build.delaySupplier
- the delay Duration
Supplier
.JFXAnimationTemplateConfig.Builder
instance.delay(Duration)
public JFXAnimationTemplateConfig.Builder rate(double rate)
rate
- the animation rate.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder rate(Supplier<Double> rateSupplier)
rate(double)
which is computed when the JFXAnimationTemplateConfig
is build.rateSupplier
- the animation rate Supplier
.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig.Builder onFinish(javafx.event.EventHandler<javafx.event.ActionEvent> onFinish)
onFinish
- the finish EventHandler
.JFXAnimationTemplateConfig.Builder
instance.public JFXAnimationTemplateConfig build()