Package javafx.animation

Examples of javafx.animation.RotateTransition.play()


                rotationY.setAxis(Rotate.Z_AXIS);
                rotationY.setDuration(Duration.seconds(1));
                rotationY.setByAngle(-360);
                rotationY.setNode(w);
                rotationY.setCycleCount(1);
                rotationY.play();
            }
        });
    }
}
View Full Code Here


        RotateTransition rotate = new RotateTransition();
        rotate.setNode(cross);
        rotate.setToAngle(0);
        rotate.setDuration(Duration.millis(200));
        rotate.setInterpolator(Interpolator.EASE_BOTH);
        rotate.play();
        closeTimeLines[closeTimeLines.length - 1].setOnFinished(actionEvent -> {
            FadeTransition buttonFadeOut = new FadeTransition();
            buttonFadeOut.setNode(mainMenuButton);
            buttonFadeOut.setDuration(Duration.millis(100));
            buttonFadeOut.setToValue(options.getButtonAlpha());
View Full Code Here

                rotationY.setAxis(Rotate.Z_AXIS);
                rotationY.setDuration(Duration.seconds(1));
                rotationY.setByAngle(-360);
                rotationY.setNode(w);
                rotationY.setCycleCount(1);
                rotationY.play();
            }
        });
    }
}
View Full Code Here

        RotateTransition rotate = new RotateTransition();
        rotate.setNode(cross);
        rotate.setToAngle(0);
        rotate.setDuration(Duration.millis(200));
        rotate.setInterpolator(Interpolator.EASE_BOTH);
        rotate.play();
        closeTimeLines[closeTimeLines.length - 1].setOnFinished(actionEvent -> {
            FadeTransition buttonFadeOut = new FadeTransition();
            buttonFadeOut.setNode(mainMenuButton);
            buttonFadeOut.setDuration(Duration.millis(100));
            buttonFadeOut.setToValue(options.getButtonAlpha());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.