Class MoveControlEffect
java.lang.Object
org.eclipse.nebula.animation.effects.AbstractEffect
org.eclipse.nebula.animation.effects.MoveControlEffect
- All Implemented Interfaces:
IEffect
public class MoveControlEffect extends AbstractEffect
Moves a control.
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.widgets.Controlcontrol(package private) intendX(package private) intendY(package private) intstartX(package private) intstartY(package private) intstepX(package private) intstepYFields inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
done, easingFunction, length, runnableOnCancel, runnableOnStop -
Constructor Summary
Constructors Constructor Description MoveControlEffect(org.eclipse.swt.widgets.Control control, int startX, int endX, int startY, int endY, 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.intgetEnd()intgetStartX()static voidmove(AnimationRunner runner, org.eclipse.swt.widgets.Control w, int x, int y, 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
-
MoveControlEffect
public MoveControlEffect(org.eclipse.swt.widgets.Control control, int startX, int endX, int startY, int endY, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
-
-
Method Details
-
move
public static void move(AnimationRunner runner, org.eclipse.swt.widgets.Control w, int x, int y, int duration, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)Deprecated.- Parameters:
w-x-y-duration-movement-onStop-onCancel-
-
applyEffect
public void applyEffect(long currentTime)Description copied from class:AbstractEffectApply this effect.- Specified by:
applyEffectin classAbstractEffect
-
getStartX
public int getStartX() -
getEnd
public int getEnd()
-