Class Shake
java.lang.Object
org.eclipse.nebula.cwt.animation.effects.AbstractEffect
org.eclipse.nebula.cwt.animation.effects.Shake
- All Implemented Interfaces:
IEffect
public class Shake extends AbstractEffect
Shake effect (like login failure on Mac OSX)
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.widgets.Control
control
(package private) org.eclipse.swt.graphics.Point
dest
(package private) org.eclipse.swt.graphics.Point
diff
(package private) org.eclipse.swt.graphics.Point
src
Fields inherited from class org.eclipse.nebula.cwt.animation.effects.AbstractEffect
done, easingFunction, length, runnableOnCancel, runnableOnStop, startTime
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
applyEffect(long currentTime)
Apply this effect.static void
shake(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.cwt.animation.effects.AbstractEffect
cancel, doCancel, doEffect, doStop, getCurrentTime, isDone, processEnd
-
Field Details
-
Constructor Details
-
Method Details
-
shake
public static void shake(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:AbstractEffect
Apply this effect.- Specified by:
applyEffect
in classAbstractEffect
-