public class AlphaEffect extends AbstractEffect
Modifier and Type | Field and Description |
---|---|
(package private) int |
end |
(package private) org.eclipse.swt.widgets.Shell |
shell |
(package private) int |
start |
(package private) int |
step |
done, easingFunction, length, runnableOnCancel, runnableOnStop
Constructor and Description |
---|
AlphaEffect(org.eclipse.swt.widgets.Shell shell,
int start,
int end,
long lengthMilli,
IMovement movement,
java.lang.Runnable onStop,
java.lang.Runnable onCancel) |
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(long currentTime)
Apply this effect.
|
static void |
fadeOnClose(org.eclipse.swt.widgets.Shell shell,
int duration,
IMovement easing)
Deprecated.
Use
fadeOnClose(Shell,int,IMovement,AnimationRunner)
instead |
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.
|
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.
|
cancel, doCancel, doEffect, doEffect, doStop, getLength, isDone, processEnd
public AlphaEffect(org.eclipse.swt.widgets.Shell shell, int start, int end, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
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)
w
- alpha
- duration
- movement
- onStop
- onCancel
- public static void fadeOnClose(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing)
fadeOnClose(Shell,int,IMovement,AnimationRunner)
insteadshell
- duration
- easing
- public static void fadeOnClose(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing, AnimationRunner runner)
shell
- duration
- easing
- runner
- : The AnimationRunner to use, or nullpublic void applyEffect(long currentTime)
AbstractEffect
applyEffect
in class AbstractEffect