IEffect
public class AlphaEffect extends AbstractEffect
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) |
Modifier and Type | Method | 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, doEffect, doEffect, 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