public class SlideAnimation extends CenterSwitchAnimation
imageView
Constructor and Description |
---|
SlideAnimation() |
Modifier and Type | Method and Description |
---|---|
protected javafx.animation.Animation |
createAndPrepareAnimation(javafx.scene.Node curNode,
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
|
animate
protected javafx.animation.Animation createAndPrepareAnimation(javafx.scene.Node curNode, javafx.scene.Node newNode)
CenterSwitchAnimation
createAndPrepareAnimation
in class CenterSwitchAnimation
curNode
- 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)