@@ -0,0 +1,2530 @@
+import javafx.application.*;%0Aimport javafx.scene.*;%0Aimport javafx.stage.*;%0Aimport javafx.scene.layout.*;%0Aimport javafx.scene.control.*;%0Aimport javafx.event.*;%0Aimport javafx.geometry.*;%0Aimport javafx.scene.transform.*;%0Aimport javafx.scene.effect.*;%0Aimport javafx.scene.paint.*;%0A%0A%0Apublic class EffectsAndTransformsDemo extends Application %7B%0A    double angle = 0.0;%0A    double glowVal = 0.0;%0A    boolean shadow = false;%0A    double scaleFactor = 1.0;%0A%0A    Glow glow = new Glow(0.0);%0A    InnerShadow innerShadow = new InnerShadow(10.0, Color.RED);%0A    Rotate rotate = new Rotate();%0A    Scale scale = new Scale(scaleFactor, scaleFactor);%0A%0A    Button btnRotate = new Button(%22Rotate%22);%0A    Button btnGlow = new Button(%22Glow%22);%0A    Button btnShadow = new Button(%22Shadow off%22);%0A    Button btnScale = new Button(%22Scale%22);%0A%0A    public static void main(String%5B%5D args) %7B %0A        launch(args);%0A    %7D%0A%0A    public void start(Stage myStage) %7B%0A        myStage.setTitle(%22Effects and Transforms Demo%22);%0A        FlowPane rootNode = new FlowPane(10, 10);%0A        rootNode.setAlignment(Pos.CENTER);%0A        Scene myScene = new Scene(rootNode, 300, 100);%0A        myStage.setScene(myScene);%0A%0A        btnGlow.setEffect(glow);%0A        btnRotate.getTransforms().add(rotate);%0A        btnScale.getTransforms().add(scale);%0A%0A        btnRotate.setOnAction(new EventHandler%3CActionEvent%3E() %7B%0A            public void handle(ActionEvent ae) %7B%0A                angle += 30.0;%0A                rotate.setAngle(angle);%0A                rotate.setPivotX(btnRotate.getWidth() / 2);%0A                rotate.setPivotY(btnRotate.getHeight() / 2);%0A            %7D%0A        %7D);%0A%0A        btnScale.setOnAction((ae) -%3E %7B%0A            scaleFactor += 0.1;%0A            if (scaleFactor %3E 1.0) %7B%0A                scaleFactor = 0.4;%0A            %7D%0A            scale.setX(scaleFactor);%0A            scale.setY(scaleFactor);%0A        %7D);%0A%0A        btnGlow.setOnAction((ae) -%3E %7B%0A            glowVal += 0.1;%0A            if (glowVal %3E 1.0) %7B%0A                glowVal = 0.0;%0A            %7D%0A            glow.setLevel(glowVal);%0A        %7D);%0A%0A        btnShadow.setOnAction((ae) -%3E %7B%0A            shadow = !shadow;%0A            if (shadow) %7B%0A                btnShadow.setEffect(innerShadow);%0A                btnShadow.setText(%22Shadow on%22);%0A            %7D%0A            else %7B%0A                btnShadow.setEffect(null);%0A                btnShadow.setText(%22Shadow of%22);%0A            %7D%0A        %7D);%0A%0A        rootNode.getChildren().addAll(btnRotate, btnScale, btnGlow, btnShadow);%0A        %0A        myStage.show();%0A    %7D%0A%7D%0A%0A%0A

add data about transformation