package com.syntacticsugar.vooga.authoring.fluidmotion.mixandmatchmotion;

import com.syntacticsugar.vooga.authoring.fluidmotion.FadeTransitionWizard;
import com.syntacticsugar.vooga.authoring.fluidmotion.FluidGlassBall;
import com.syntacticsugar.vooga.authoring.fluidmotion.SequentialTransitionWizard;

import javafx.animation.Animation;
import javafx.animation.SequentialTransition;
import javafx.scene.Node;

public class PulsingFadeWizard {
	public static Animation applyEffect(Node node){
		SequentialTransition seq = (SequentialTransition) SequentialTransitionWizard.sequence(
				FadeTransitionWizard.fadeIn(
						node, 
						FluidGlassBall.getPreviewTilePulseDuration(), 
						FluidGlassBall.getPulsingFadeOpacityMin(), 
						FluidGlassBall.getPulsingFadeOpacityMax(),
						FluidGlassBall.getDirectionalFadeCycleCount()),
				FadeTransitionWizard.fadeOut(
						node, 
						FluidGlassBall.getPreviewTilePulseDuration(), 
						FluidGlassBall.getPulsingFadeOpacityMax(), 
						FluidGlassBall.getPulsingFadeOpacityMin(), 
						FluidGlassBall.getDirectionalFadeCycleCount()));
		seq.setCycleCount(Integer.MAX_VALUE);
		return seq;
	}
}

@@ -66,19 +66,17 @@
 hmotion;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -143,17 +143,16 @@
 nWizard;
-%0D
 %0Aimport 
@@ -213,17 +213,16 @@
 assBall;
-%0D
 %0Aimport 
@@ -295,19 +295,17 @@
 nWizard;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -327,25 +327,24 @@
 n.Animation;
-%0D
 %0Aimport java
@@ -377,17 +377,16 @@
 nsition;
-%0D
 %0Aimport 
@@ -407,11 +407,9 @@
 ode;
-%0D%0A%0D
+%0A
 %0Apub
@@ -437,17 +437,16 @@
 Wizard %7B
-%0D
 %0A%09public
@@ -486,17 +486,16 @@
 e node)%7B
-%0D
 %0A%09%09Seque
@@ -575,17 +575,16 @@
 equence(
-%0D
 %0A%09%09%09%09Fad
@@ -608,17 +608,16 @@
 .fadeIn(
-%0D
 %0A%09%09%09%09%09%09n
@@ -613,33 +613,32 @@
 In(%0A%09%09%09%09%09%09node, 
-%0D
 %0A%09%09%09%09%09%09FluidGlas
@@ -666,33 +666,32 @@
 ulseDuration(), 
-%0D
 %0A%09%09%09%09%09%09FluidGlas
@@ -716,33 +716,32 @@
 deOpacityMin(), 
-%0D
 %0A%09%09%09%09%09%09FluidGlas
@@ -773,17 +773,16 @@
 tyMax(),
-%0D
 %0A%09%09%09%09%09%09F
@@ -827,17 +827,16 @@
 ount()),
-%0D
 %0A%09%09%09%09Fad
@@ -861,17 +861,16 @@
 fadeOut(
-%0D
 %0A%09%09%09%09%09%09n
@@ -874,17 +874,16 @@
 %09%09node, 
-%0D
 %0A%09%09%09%09%09%09F
@@ -923,25 +923,24 @@
 Duration(), 
-%0D
 %0A%09%09%09%09%09%09Fluid
@@ -973,25 +973,24 @@
 acityMax(), 
-%0D
 %0A%09%09%09%09%09%09Fluid
@@ -1027,17 +1027,16 @@
 yMin(), 
-%0D
 %0A%09%09%09%09%09%09F
@@ -1082,17 +1082,16 @@
 unt()));
-%0D
 %0A%09%09seq.s
@@ -1122,17 +1122,16 @@
 _VALUE);
-%0D
 %0A%09%09retur
@@ -1140,13 +1140,10 @@
 seq;
-%0D
 %0A%09%7D
-%0D
 %0A%7D
-%0D
 %0A

NO CONFLICTS