Module MaterialFX

Class AnimationUtils.AbstractBuilder

java.lang.Object
io.github.palexdev.materialfx.utils.AnimationUtils.AbstractBuilder
Direct Known Subclasses:
AnimationUtils.ParallelBuilder, AnimationUtils.SequentialBuilder
Enclosing class:
AnimationUtils

public abstract static class AnimationUtils.AbstractBuilder extends Object
Common base class for AnimationUtils.ParallelBuilder and AnimationUtils.SequentialBuilder.

This builder, designed with fluent api, allows you to create simple and complex animations with just a few lines of code.

The builder keeps the reference of the "main" animation (depending on the subclass can be ParallelTransition or SequentialTransition, in the AbstractBuilder the type is a generic Animation), and defines and abstract method that subclasses must implement to properly add animations to the "main".