Class SetAlpha

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

public class SetAlpha
extends AbstractEffect
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) int end  
    (package private) org.eclipse.swt.widgets.Shell shell  
    (package private) int start  
    (package private) int step  

    Fields inherited from class org.eclipse.nebula.cwt.animation.effects.AbstractEffect

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

    Constructors 
    Constructor Description
    SetAlpha​(org.eclipse.swt.widgets.Shell shell, int start, int end, 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 fadeOnClose​(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing)
    Add a listener that will fade the window when it get closed.
    static void setAlpha​(AnimationRunner runner, org.eclipse.swt.widgets.Shell w, int alpha, 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

    Methods inherited from class java.lang.Object

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

    • start

      int start
    • end

      int end
    • step

      int step
    • shell

      org.eclipse.swt.widgets.Shell shell
  • Constructor Details

    • SetAlpha

      public SetAlpha​(org.eclipse.swt.widgets.Shell shell, int start, int end, long lengthMilli, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
  • Method Details

    • setAlpha

      public static void setAlpha​(AnimationRunner runner, org.eclipse.swt.widgets.Shell w, int alpha, int duration, IMovement movement, java.lang.Runnable onStop, java.lang.Runnable onCancel)
      Deprecated.
      Parameters:
      w -
      alpha -
      duration -
      movement -
      onStop -
      onCancel -
    • fadeOnClose

      public static void fadeOnClose​(org.eclipse.swt.widgets.Shell shell, int duration, IMovement easing)
      Add a listener that will fade the window when it get closed.
      Parameters:
      shell -
      duration -
      easing -
    • applyEffect

      public void applyEffect​(long currentTime)
      Description copied from class: AbstractEffect
      Apply this effect.
      Specified by:
      applyEffect in class AbstractEffect