java.lang.Object
io.github.palexdev.materialfx.utils.AnimationUtils
Utility class to easily build animations of any sort. Designed with fluent api.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCommon base class forAnimationUtils.ParallelBuilderandAnimationUtils.SequentialBuilder.static classBuilder class for keyframes and keyvalues.static classImplementation ofAnimationUtils.AbstractBuilderthat uses aParallelTransitionas "main" animation.static classBuilder class to easily create aPauseTransitionwith fluent api.static classImplementation ofAnimationUtils.AbstractBuilderthat uses aSequentialTransitionas "main" animation.static classBuilder class to easily create aTimelinewith fluent api. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddisableTemporarily(double millis, Node node) CallsdisableTemporarily(Duration, Node)by converting the given millis value withDuration.millis(double).static voiddisableTemporarily(Duration duration, Node node) Temporarily disables the given node for the specified duration.static voidexecuteLater(double millis, EventHandler<ActionEvent> onFinished) CallsexecuteLater(Duration, EventHandler)by converting the given millis value withDuration.millis(double).static voidexecuteLater(Duration duration, EventHandler<ActionEvent> onFinished) Executes the given onFinished action after the specified duration of time.static booleanstatic booleanstatic booleantransitionText(Labeled labeled, double millis, String nexText) CallstransitionText(Labeled, Duration, String)by converting the given millis value withDuration.millis(double).transitionText(Labeled labeled, Duration duration, String nexText) Sets the text of the givenLabeledwith a fade out/fade in transition.transitionText(Text text, double millis, String nexText) CallstransitionText(Text, Duration, String)by converting the given millis value withDuration.millis(double).transitionText(Text text, Duration duration, String nexText) Sets the text of the givenTextwith a fade out/fade in transition.
-
Method Details
-
disableTemporarily
Temporarily disables the given node for the specified duration. -
disableTemporarily
CallsdisableTemporarily(Duration, Node)by converting the given millis value withDuration.millis(double). -
executeLater
Executes the given onFinished action after the specified duration of time. (Uses a PauseTransition) -
executeLater
CallsexecuteLater(Duration, EventHandler)by converting the given millis value withDuration.millis(double). -
transitionText
public static AnimationUtils.AbstractBuilder transitionText(Labeled labeled, Duration duration, String nexText) Sets the text of the givenLabeledwith a fade out/fade in transition.- Parameters:
labeled- the labeled control to change the text toduration- the fade in and fade out speednexText- the new text to set- Returns:
- an instance of
AnimationUtils.AbstractBuilder
-
transitionText
public static AnimationUtils.AbstractBuilder transitionText(Labeled labeled, double millis, String nexText) CallstransitionText(Labeled, Duration, String)by converting the given millis value withDuration.millis(double). -
transitionText
public static AnimationUtils.AbstractBuilder transitionText(Text text, Duration duration, String nexText) Sets the text of the givenTextwith a fade out/fade in transition.- Parameters:
text- the text control to change the text toduration- the fade in and fade out speednexText- the new text to set- Returns:
- an instance of
AnimationUtils.AbstractBuilder
-
transitionText
public static AnimationUtils.AbstractBuilder transitionText(Text text, double millis, String nexText) CallstransitionText(Text, Duration, String)by converting the given millis value withDuration.millis(double). -
isPlaying
- Returns:
- true if the given animation status is RUNNING, otherwise false
-
isPaused
- Returns:
- true if the given animation status is PAUSED, otherwise false
-
isStopped
-