Class GrowEffect
java.lang.Object
org.eclipse.nebula.animation.effects.AbstractEffect
org.eclipse.nebula.animation.effects.GrowEffect
- All Implemented Interfaces:
IEffect
public class GrowEffect extends AbstractEffect
Resizes a control while keeping it centered.
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.widgets.Controlcontrol(package private) org.eclipse.swt.graphics.Rectangledest(package private) org.eclipse.swt.graphics.Rectanglediff(package private) org.eclipse.swt.graphics.RectanglesrcFields inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
done, easingFunction, length, runnableOnCancel, runnableOnStop -
Constructor Summary
Constructors Constructor Description GrowEffect(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Rectangle src, org.eclipse.swt.graphics.Rectangle dest, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel) -
Method Summary
Modifier and Type Method Description voidapplyEffect(long currentTime)Apply this effect.voidgrow(AnimationRunner runner, org.eclipse.swt.widgets.Control w, int duration, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)Deprecated.Methods inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
cancel, doCancel, doEffect, doEffect, doStop, getLength, isDone, processEnd
-
Field Details
-
Constructor Details
-
GrowEffect
public GrowEffect(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Rectangle src, org.eclipse.swt.graphics.Rectangle dest, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
-
-
Method Details
-
grow
public void grow(AnimationRunner runner, org.eclipse.swt.widgets.Control w, int duration, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)Deprecated.- Parameters:
w-duration-movement-onStop-onCancel-
-
applyEffect
public void applyEffect(long currentTime)Description copied from class:AbstractEffectApply this effect.- Specified by:
applyEffectin classAbstractEffect
-