public class CrossFadeEffect extends AbstractEffect
CrossFadeEffect.IImageObject
.Modifier and Type | Class and Description |
---|---|
static interface |
CrossFadeEffect.IImageObject |
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.graphics.Image |
buffer |
(package private) double |
easingValue |
(package private) org.eclipse.swt.graphics.GC |
gc |
(package private) org.eclipse.swt.graphics.Image |
image1 |
(package private) org.eclipse.swt.graphics.Image |
image2 |
(package private) CrossFadeEffect.IImageObject |
obj |
done, easingFunction, length, runnableOnCancel, runnableOnStop
Constructor and Description |
---|
CrossFadeEffect(CrossFadeEffect.IImageObject obj,
org.eclipse.swt.graphics.Image image1,
org.eclipse.swt.graphics.Image image2,
long lengthMilli,
IMovement movement)
Cross fade from image1 to image2 on obj.
|
CrossFadeEffect(CrossFadeEffect.IImageObject obj,
org.eclipse.swt.graphics.Image image1,
org.eclipse.swt.graphics.Image image2,
long lengthMilli,
IMovement movement,
java.lang.Runnable onStop)
Cross fade from image1 to image2 on obj.
|
CrossFadeEffect(CrossFadeEffect.IImageObject obj,
org.eclipse.swt.graphics.Image image1,
org.eclipse.swt.graphics.Image image2,
long lengthMilli,
IMovement movement,
java.lang.Runnable onStop,
java.lang.Runnable onCancel)
Cross fade from image1 to image2 on obj.
|
Modifier and Type | Method and Description |
---|---|
void |
applyEffect(long currentTime)
Apply this effect.
|
protected void |
cleanup()
Clear resources.
|
protected void |
doCancel()
Run the onCancel runnable if any.
|
protected void |
doStop()
Run the onStop runnable if any.
|
cancel, doEffect, doEffect, getLength, isDone, processEnd
org.eclipse.swt.graphics.Image buffer
double easingValue
org.eclipse.swt.graphics.GC gc
org.eclipse.swt.graphics.Image image1
org.eclipse.swt.graphics.Image image2
CrossFadeEffect.IImageObject obj
public CrossFadeEffect(CrossFadeEffect.IImageObject obj, org.eclipse.swt.graphics.Image image1, org.eclipse.swt.graphics.Image image2, long lengthMilli, IMovement movement)
obj
- image1
- image2
- lengthMilli
- movement
- public CrossFadeEffect(CrossFadeEffect.IImageObject obj, org.eclipse.swt.graphics.Image image1, org.eclipse.swt.graphics.Image image2, long lengthMilli, IMovement movement, java.lang.Runnable onStop)
obj
- image1
- image2
- lengthMilli
- movement
- onStop
- public CrossFadeEffect(CrossFadeEffect.IImageObject obj, org.eclipse.swt.graphics.Image image1, org.eclipse.swt.graphics.Image image2, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
obj
- image1
- image2
- lengthMilli
- movement
- onStop
- onCancel
- public void applyEffect(long currentTime)
AbstractEffect
applyEffect
in class AbstractEffect
AbstractEffect.applyEffect(long)
protected void cleanup()
protected void doCancel()
AbstractEffect
doCancel
in class AbstractEffect
AbstractEffect.doCancel()
protected void doStop()
AbstractEffect
doStop
in class AbstractEffect
AbstractEffect.doStop()