@@ -0,0 +1,1579 @@
+%0A/**%0A* usage %0A    public void run(Button button,Task t)%7B%0A        Animated a=new Animated();%0A        t.setOnSucceeded(ev -%3E a.stop(button));%0A        new Thread(t).start();%0A        a.start(button);%0A    %7D%0A*/%0A%0Aprivate class Animated extends ColorAdjust%7B%0A%0A        private Effect e=null;%0A%0A        public Animated()%7B%0A            super();%0A%0A            setBrightness(0.0);%0A        %7D%0A%0A        public void start(Node node)%7B%0A            this.e=node.getEffect();%0A            node.setEffect(this);%0A            in();%0A        %7D%0A        public void stop(Node node)%7B%0A            node.setEffect(this.e);%0A        %7D%0A%0A        private void in()%7B%0A            Timeline tm = new Timeline(%0A                    new KeyFrame(Duration.seconds(0),new KeyValue(brightnessProperty(), brightnessProperty().getValue(), Interpolator.LINEAR)),%0A                    new KeyFrame(Duration.seconds(1), new KeyValue(brightnessProperty(), -1, Interpolator.LINEAR))%0A            );%0A            tm.setCycleCount(1);%0A            tm.setAutoReverse(false);%0A%0A            tm.setOnFinished((e)-%3Eout());%0A%0A            tm.play();%0A        %7D%0A        private void out()%7B%0A            Timeline tm = new Timeline(%0A                    new KeyFrame(Duration.seconds(0),new KeyValue(brightnessProperty(), brightnessProperty().getValue(), Interpolator.LINEAR)),%0A                    new KeyFrame(Duration.seconds(1), new KeyValue(brightnessProperty(), 0, Interpolator.LINEAR))%0A            );%0A            tm.setCycleCount(1);%0A            tm.setAutoReverse(false);%0A%0A            tm.setOnFinished((e)-%3Ein());%0A%0A            tm.play();%0A        %7D%0A    %7D%0A

Create Animated.java