package de.neofonie.mobile.app.android.widget.crouton;


import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;


final class AnimationsBuilder
{
	private static final class SlideInDownAnimationParameters
	{
		private SlideInDownAnimationParameters() {
		}

		public static final float FROM_X_DELTA = 0;
		public static final float TO_X_DELTA = 0;
		public static final float FROM_Y_DELTA = -50;
		public static final float TO_Y_DELTA = 0;

		public static final long DURATION = 400;
	}

	private static final class SlideOutUpAnimationParameters
	{
		private SlideOutUpAnimationParameters() {
		}

		public static final float FROM_X_DELTA = 0;
		public static final float TO_X_DELTA = 0;
		public static final float FROM_Y_DELTA = 0;
		public static final float TO_Y_DELTA = -50;

		public static final long DURATION = 400;
	}

	private AnimationsBuilder() {
	}

	public static Animation buildSlideInDownAnimation() {
		Animation slideInDownAnimation = new TranslateAnimation(
			SlideInDownAnimationParameters.FROM_X_DELTA, SlideInDownAnimationParameters.TO_X_DELTA,
			SlideInDownAnimationParameters.FROM_Y_DELTA, SlideInDownAnimationParameters.TO_Y_DELTA);
		slideInDownAnimation.setDuration(SlideInDownAnimationParameters.DURATION);

		return slideInDownAnimation;
	}

	public static Animation buildSlideOutUpAnimation() {
		Animation slideOutUpAnimation = new TranslateAnimation(
			SlideOutUpAnimationParameters.FROM_X_DELTA, SlideOutUpAnimationParameters.TO_X_DELTA,
			SlideOutUpAnimationParameters.FROM_Y_DELTA, SlideOutUpAnimationParameters.TO_Y_DELTA);
		slideOutUpAnimation.setDuration(SlideOutUpAnimationParameters.DURATION);

		return slideOutUpAnimation;
	}
}

@@ -175,17 +175,18 @@
 ilder%0A%7B%0A
-%09
+  
 private 
@@ -227,37 +227,40 @@
 ationParameters%0A
-%09%7B%0A%09%09
+  %7B%0A    
 private SlideInD
@@ -278,39 +278,43 @@
 nParameters() %7B%0A
-%09%09%7D%0A%0A%09%09
+    %7D%0A%0A    
 public static fi
@@ -333,34 +333,36 @@
 OM_X_DELTA = 0;%0A
-%09%09
+    
 public static fi
@@ -379,34 +379,36 @@
 TO_X_DELTA = 0;%0A
-%09%09
+    
 public static fi
@@ -437,18 +437,20 @@
  = -50;%0A
-%09%09
+    
 public s
@@ -480,26 +480,28 @@
 DELTA = 0;%0A%0A
-%09%09
+    
 public stati
@@ -521,37 +521,39 @@
 DURATION = 400;%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 private static f
@@ -597,13 +597,16 @@
 ers%0A
-%09%7B%0A%09%09
+  %7B%0A    
 priv
@@ -647,15 +647,19 @@
 ) %7B%0A
-%09%09%7D%0A%0A%09%09
+    %7D%0A%0A    
 publ
@@ -690,34 +690,36 @@
 OM_X_DELTA = 0;%0A
-%09%09
+    
 public static fi
@@ -736,34 +736,36 @@
 TO_X_DELTA = 0;%0A
-%09%09
+    
 public static fi
@@ -792,18 +792,20 @@
 TA = 0;%0A
-%09%09
+    
 public s
@@ -841,18 +841,20 @@
 = -50;%0A%0A
-%09%09
+    
 public s
@@ -886,21 +886,23 @@
  = 400;%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 private 
@@ -923,21 +923,23 @@
 der() %7B%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 public s
@@ -976,34 +976,36 @@
 wnAnimation() %7B%0A
-%09%09
+    
 Animation slideI
@@ -1041,27 +1041,30 @@
 eAnimation(%0A
-%09%09%09
+      
 SlideInDownA
@@ -1135,27 +1135,30 @@
 TO_X_DELTA,%0A
-%09%09%09
+      
 SlideInDownA
@@ -1230,26 +1230,28 @@
 O_Y_DELTA);%0A
-%09%09
+    
 slideInDownA
@@ -1306,34 +1306,36 @@
 ers.DURATION);%0A%0A
-%09%09
+    
 return slideInDo
@@ -1351,13 +1351,15 @@
 on;%0A
-%09%7D%0A%0A%09
+  %7D%0A%0A  
 publ
@@ -1407,18 +1407,20 @@
 ion() %7B%0A
-%09%09
+    
 Animatio
@@ -1467,19 +1467,22 @@
 mation(%0A
-%09%09%09
+      
 SlideOut
@@ -1563,11 +1563,14 @@
 TA,%0A
-%09%09%09
+      
 Slid
@@ -1652,18 +1652,20 @@
 DELTA);%0A
-%09%09
+    
 slideOut
@@ -1734,10 +1734,12 @@
 );%0A%0A
-%09%09
+    
 retu
@@ -1766,9 +1766,10 @@
 on;%0A
-%09
+  
 %7D%0A%7D%0A

Change tabs to spaces in animations builder.