Class ShakeEffect

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

public class ShakeEffect
extends AbstractEffect
Shake a control (like a 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.animation.effects.AbstractEffect

    done, easingFunction, length, runnableOnCancel, runnableOnStop
  • Constructor Summary

    Constructors 
    Constructor Description
    ShakeEffect​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Point src, org.eclipse.swt.graphics.Point dest, 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.
    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.animation.effects.AbstractEffect

    cancel, doCancel, doEffect, doEffect, doStop, getLength, isDone, processEnd

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • src

      org.eclipse.swt.graphics.Point src
    • dest

      org.eclipse.swt.graphics.Point dest
    • diff

      org.eclipse.swt.graphics.Point diff
    • control

      org.eclipse.swt.widgets.Control control
  • Constructor Details

    • ShakeEffect

      public ShakeEffect​(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Point src, org.eclipse.swt.graphics.Point dest, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
  • 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 class AbstractEffect