public class SetAlpha 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, startTime
Constructor and Description |
---|
SetAlpha(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)
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, doStop, getCurrentTime, isDone, processEnd
public SetAlpha(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)
shell
- duration
- easing
- public void applyEffect(long currentTime)
AbstractEffect
applyEffect
in class AbstractEffect