Module com.example.project
Class AnimationWrapper
java.lang.Object
com.example.project.controllers.gameScreens.animations.AnimationWrapper
- Direct Known Subclasses:
LevelScoreSequence
,TextEmphasisAnimation
Animation wrapper class for our projects animations that get used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final javafx.animation.SequentialTransition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.collections.ObservableList
<javafx.animation.Animation> returns animations children.void
play()
play.void
setOnFinished
(javafx.event.EventHandler<javafx.event.ActionEvent> handler) Set on finished.
-
Field Details
-
sequentialAnimation
protected final javafx.animation.SequentialTransition sequentialAnimation
-
-
Constructor Details
-
AnimationWrapper
protected AnimationWrapper()
-
-
Method Details
-
play
public void play()play. -
setOnFinished
public void setOnFinished(javafx.event.EventHandler<javafx.event.ActionEvent> handler) Set on finished.- Parameters:
handler
- actions to do.
-
getChildren
public javafx.collections.ObservableList<javafx.animation.Animation> getChildren()returns animations children.- Returns:
- list of animations.
-