IEffect
public class SetColorEffect extends AbstractEffect
Modifier and Type | Class | Description |
---|---|---|
static interface |
SetColorEffect.IColoredObject |
Objects on which the SetColorEffect is applied must implements this
interface.
|
Constructor | Description |
---|---|
SetColorEffect(SetColorEffect.IColoredObject control,
org.eclipse.swt.graphics.Color src,
org.eclipse.swt.graphics.Color dest,
long lengthMilli,
IMovement movement,
java.lang.Runnable onStop,
java.lang.Runnable onCancel) |
Create a new effect on object control.
|
Modifier and Type | Method | Description |
---|---|---|
void |
applyEffect(long currentTime) |
Apply this effect.
|
cancel, doEffect, doEffect, getLength, isDone, processEnd
public SetColorEffect(SetColorEffect.IColoredObject control, org.eclipse.swt.graphics.Color src, org.eclipse.swt.graphics.Color dest, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
Create a new effect on object control.
Source and destination color will not be disposed during or after the animation. All other temporary colors created by this effect will be disposed automatically.
control
- src
- dest
- lengthMilli
- movement
- onStop
- can be a Runnable or nullonCancel
- can be a Runnable or nullpublic void applyEffect(long currentTime)
AbstractEffect
applyEffect
in class AbstractEffect