public final class AnimationProvider extends Object
| Constructor and Description |
|---|
AnimationProvider() |
| Modifier and Type | Method and Description |
|---|---|
static javafx.animation.FadeTransition |
createFadeTransition(javafx.scene.Node node,
double fromValue,
double toValue,
int cycleCount,
double duration)
Method to create a FadeTransition with several parameters.
|
static javafx.animation.RotateTransition |
createRotateTransition(javafx.scene.Node node,
double fromAngle,
double toAngle,
int cycleCount,
double duration,
javafx.animation.Interpolator interpolator,
boolean autoReverse)
Method to create a RotateTransition with several parameters.
|
public static javafx.animation.FadeTransition createFadeTransition(javafx.scene.Node node,
double fromValue,
double toValue,
int cycleCount,
double duration)
node - the node to which the transition should be appliedfromValue - the opacity value from which the transition should starttoValue - the opactity value where the transition should endcycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless)duration - the duration which one animation cycle should takepublic static javafx.animation.RotateTransition createRotateTransition(javafx.scene.Node node,
double fromAngle,
double toAngle,
int cycleCount,
double duration,
javafx.animation.Interpolator interpolator,
boolean autoReverse)
node - the node to which the transition should be applied.fromAngle - the rotation angle where the transition should start.toAngle - the rotation angle where the transition should end.cycleCount - the number of times the animation should be played (use Animation.INDEFINITE for endless).duration - the duration which one animation cycle should take.interpolator - defines the rotation value interpolation between fromAngle and toAngle.autoReverse - defines if the animation should be reversed at the end.Copyright © 2015–2018 openbase.org. All rights reserved.