org.eclipse.nebula.animation.effects
Class ShakeEffect

java.lang.Object
  extended byorg.eclipse.nebula.animation.effects.AbstractEffect
      extended byorg.eclipse.nebula.animation.effects.ShakeEffect
All Implemented Interfaces:
IEffect

public class ShakeEffect
extends AbstractEffect

Shake effect (like login failure on Mac OSX)

Author:
Nicolas Richeton

Constructor Summary
ShakeEffect(Control control, Point src, Point dest, long lengthMilli, IMovement movement, Runnable onStop, Runnable onCancel)
           
 
Method Summary
 void applyEffect(long currentTime)
          Apply this effect.
static void shake(AnimationRunner runner, Control w, int duration, IMovement movement, Runnable onStop, Runnable onCancel)
          Deprecated.  
 
Methods inherited from class org.eclipse.nebula.animation.effects.AbstractEffect
cancel, doEffect, getCurrentTime, isDone, processEnd
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShakeEffect

public ShakeEffect(Control control,
                   Point src,
                   Point dest,
                   long lengthMilli,
                   IMovement movement,
                   Runnable onStop,
                   Runnable onCancel)
Method Detail

shake

public static void shake(AnimationRunner runner,
                         Control w,
                         int duration,
                         IMovement movement,
                         Runnable onStop,
                         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 class AbstractEffect
Parameters:
currentTime -