public class FlipAnimation extends CenterSwitchAnimation
imageView
Constructor and Description |
---|
FlipAnimation() |
Modifier and Type | Method and Description |
---|---|
void |
animate(javafx.scene.layout.BorderPane pane,
javafx.scene.Node newNode,
java.lang.Runnable postAnimation)
Animate to the new node
|
protected javafx.animation.Animation |
createAndPrepareAnimation(javafx.scene.Node area,
@Nullable javafx.scene.Node newNode)
Create an animation and prepare it for execution - but don't execute!
|
protected void |
resetProperties(javafx.scene.Node curNode,
javafx.scene.Node newNode)
Reset properties to their default after the animation has finished
|
public void animate(javafx.scene.layout.BorderPane pane, javafx.scene.Node newNode, java.lang.Runnable postAnimation)
CenterSwitchAnimation
animate
in class CenterSwitchAnimation
pane
- the pane the animation is happening onnewNode
- the new nodepostAnimation
- runnable to run when finishedprotected javafx.animation.Animation createAndPrepareAnimation(javafx.scene.Node area, @Nullable javafx.scene.Node newNode)
CenterSwitchAnimation
createAndPrepareAnimation
in class CenterSwitchAnimation
area
- the current node (node moved out!)newNode
- the replacement node (node moved in)protected void resetProperties(javafx.scene.Node curNode, javafx.scene.Node newNode)
CenterSwitchAnimation
resetProperties
in class CenterSwitchAnimation
curNode
- the current node (node moved out!)newNode
- the new node (node moved in)