package authoring.fluidmotion;

import javafx.animation.Animation;
import javafx.animation.FadeTransition;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Node;
import javafx.util.Duration;

public class FadeTransitionWizard {
	public static Animation fadeOut(Node node,int timeDuration,  
			int initVal, int endVal, int cycleNo, EventHandler<ActionEvent> onFinished){
		FadeTransition ft = initFadeTransitionObject(node, timeDuration, onFinished);
		 ft.setFromValue(1);
	     ft.setToValue(0);
	     ft.play();
		return ft;
	}
	
	public static Animation fadeIn(Node node,int timeDuration,  
			int initVal, int endVal, int cycleNo, EventHandler<ActionEvent> onFinished){
		FadeTransition ft = initFadeTransitionObject(node, timeDuration, onFinished);
		 ft.setFromValue(0);
	     ft.setToValue(1);
	     ft.play();
		return ft;
	}

	private static FadeTransition initFadeTransitionObject(Node node, int timeDuration,
			EventHandler<ActionEvent> onFinished) {
		FadeTransition ft = new FadeTransition(Duration.millis(timeDuration),node);
	     ft.setCycleCount(1);
	     ft.setOnFinished(onFinished);
		return ft;
	}
}

@@ -27,16 +27,42 @@
 ion;%0D%0A%0D%0A
+import java.util.List;%0D%0A%0D%0A
 import j
@@ -295,16 +295,190 @@
 zard %7B%0D%0A
+%09%0D%0A//%09public static Animation fadeOut(List%3CNode%3E nodes,int timeDuration,  %0D%0A//%09%09%09int initVal, int endVal, int cycleNo, EventHandler%3CActionEvent%3E onFinished)%7B%0D%0A//%09%09%0D%0A//%09%7D%0D%0A%09%0D%0A
 %09public 

Update fadetransition