public class SetColorEffect extends AbstractEffect
Modifier and Type | Class and Description |
---|---|
static interface |
SetColorEffect.IColoredObject
Objects on which the SetColorEffect is applied must implements this
interface.
|
Modifier and Type | Field and Description |
---|---|
(package private) SetColorEffect.IColoredObject |
control |
(package private) org.eclipse.swt.graphics.Color |
dest |
(package private) int |
diffB |
(package private) int |
diffG |
(package private) int |
diffR |
(package private) org.eclipse.swt.graphics.Color |
src |
done, easingFunction, length, runnableOnCancel, runnableOnStop
Constructor and 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 and Description |
---|---|
void |
applyEffect(long currentTime)
Apply this effect.
|
cancel, doCancel, doEffect, doEffect, doStop, getLength, isDone, processEnd
org.eclipse.swt.graphics.Color src
org.eclipse.swt.graphics.Color dest
int diffR
int diffG
int diffB
SetColorEffect.IColoredObject control
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
AbstractEffect.applyEffect(long)