Module com.example.project
Class TextEmphasisAnimation
java.lang.Object
com.example.project.controllers.gameScreens.animations.AnimationWrapper
com.example.project.controllers.gameScreens.animations.TextEmphasisAnimation
An animation to quickly enlarge text and then return it to its original scale.
-
Field Summary
Fields inherited from class com.example.project.controllers.gameScreens.animations.AnimationWrapper
sequentialAnimation
-
Constructor Summary
ConstructorsConstructorDescriptionTextEmphasisAnimation
(javafx.scene.control.Label textToAnimate, javafx.scene.paint.Paint colorAtStart, javafx.scene.paint.Paint changeColourAtEnd, javafx.util.Duration timePauseAfterAnim) create the animations for text growing then shrinking -
Method Summary
Methods inherited from class com.example.project.controllers.gameScreens.animations.AnimationWrapper
getChildren, play, setOnFinished
-
Constructor Details
-
TextEmphasisAnimation
public TextEmphasisAnimation(javafx.scene.control.Label textToAnimate, javafx.scene.paint.Paint colorAtStart, javafx.scene.paint.Paint changeColourAtEnd, javafx.util.Duration timePauseAfterAnim) create the animations for text growing then shrinking- Parameters:
textToAnimate
- Label.colorAtStart
- initial colour change.changeColourAtEnd
- colour change after finished.timePauseAfterAnim
- time delay after animation until animation finished.
-