Class MoveControl
java.lang.Object
org.eclipse.nebula.cwt.animation.effects.AbstractEffect
org.eclipse.nebula.cwt.animation.effects.MoveControl
- All Implemented Interfaces:
IEffect
public class MoveControl extends AbstractEffect
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.widgets.Control
control
(package private) int
endX
(package private) int
endY
(package private) int
startX
(package private) int
startY
(package private) int
stepX
(package private) int
stepY
Fields inherited from class org.eclipse.nebula.cwt.animation.effects.AbstractEffect
done, easingFunction, length, runnableOnCancel, runnableOnStop, startTime
-
Constructor Summary
Constructors Constructor Description MoveControl(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 void
applyEffect(long currentTime)
Apply this effect.int
getEnd()
int
getStartX()
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.Methods inherited from class org.eclipse.nebula.cwt.animation.effects.AbstractEffect
cancel, doCancel, doEffect, doStop, getCurrentTime, isDone, processEnd
-
Field Details
-
Constructor Details
-
MoveControl
public MoveControl(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:AbstractEffect
Apply this effect.- Specified by:
applyEffect
in classAbstractEffect
-
getStartX
public int getStartX() -
getEnd
public int getEnd()
-