Class AlphaEffect
java.lang.Object
org.eclipse.nebula.animation.effects.AbstractEffect
org.eclipse.nebula.animation.effects.AlphaEffect
- All Implemented Interfaces:
IEffect
public class AlphaEffect extends AbstractEffect
Set the alpha value of a Shell
-
Field Summary
Fields Modifier and Type Field Description (package private) intend(package private) org.eclipse.swt.widgets.Shellshell(package private) intstart(package private) intstepFields inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
done, easingFunction, length, runnableOnCancel, runnableOnStop -
Constructor Summary
Constructors Constructor Description AlphaEffect(org.eclipse.swt.widgets.Shell shell, int start, int end, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel) -
Method Summary
Modifier and Type Method Description voidapplyEffect(long currentTime)Apply this effect.static voidfadeOnClose(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing)Deprecated.UsefadeOnClose(Shell,int,IMovement,AnimationRunner)insteadstatic voidfadeOnClose(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing, AnimationRunner runner)Add a listener that will fade the window when it get closed.static voidsetAlpha(AnimationRunner runner, org.eclipse.swt.widgets.Shell w, int alpha, int duration, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)Deprecated.Methods inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
cancel, doCancel, doEffect, doEffect, doStop, getLength, isDone, processEnd
-
Field Details
-
Constructor Details
-
AlphaEffect
public AlphaEffect(org.eclipse.swt.widgets.Shell shell, int start, int end, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
-
-
Method Details
-
setAlpha
public static void setAlpha(AnimationRunner runner, org.eclipse.swt.widgets.Shell w, int alpha, int duration, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)Deprecated.- Parameters:
w-alpha-duration-movement-onStop-onCancel-
-
fadeOnClose
public static void fadeOnClose(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing)Deprecated.UsefadeOnClose(Shell,int,IMovement,AnimationRunner)insteadAdd a listener that will fade the window when it get closed.- Parameters:
shell-duration-easing-
-
fadeOnClose
public static void fadeOnClose(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing, AnimationRunner runner)Add a listener that will fade the window when it get closed.- Parameters:
shell-duration-easing-runner- : The AnimationRunner to use, or null
-
applyEffect
public void applyEffect(long currentTime)Description copied from class:AbstractEffectApply this effect.- Specified by:
applyEffectin classAbstractEffect
-