Class SetColorEffect
- java.lang.Object
-
- org.eclipse.nebula.animation.effects.AbstractEffect
-
- org.eclipse.nebula.animation.effects.SetColorEffect
-
- All Implemented Interfaces:
IEffect
public class SetColorEffect extends AbstractEffect
Progressively changes the color of an object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetColorEffect.IColoredObjectObjects on which the SetColorEffect is applied must implements this interface.
-
Field Summary
Fields Modifier and Type Field Description (package private) SetColorEffect.IColoredObjectcontrol(package private) org.eclipse.swt.graphics.Colordest(package private) intdiffB(package private) intdiffG(package private) intdiffR(package private) org.eclipse.swt.graphics.Colorsrc-
Fields inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
done, easingFunction, length, runnableOnCancel, runnableOnStop
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyEffect(long currentTime)Apply this effect.-
Methods inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
cancel, doCancel, doEffect, doEffect, doStop, getLength, isDone, processEnd
-
-
-
-
Field Detail
-
src
org.eclipse.swt.graphics.Color src
-
dest
org.eclipse.swt.graphics.Color dest
-
diffR
int diffR
-
diffG
int diffG
-
diffB
int diffB
-
control
SetColorEffect.IColoredObject control
-
-
Constructor Detail
-
SetColorEffect
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.
- Parameters:
control-src-dest-lengthMilli-movement-onStop- can be a Runnable or nullonCancel- can be a Runnable or null
-
-
Method Detail
-
applyEffect
public void applyEffect(long currentTime)
Description copied from class:AbstractEffectApply this effect.- Specified by:
applyEffectin classAbstractEffect- See Also:
AbstractEffect.applyEffect(long)
-
-