Class AlphaEffect

  • All Implemented Interfaces:
    IEffect

    public class AlphaEffect
    extends AbstractEffect
    Set the alpha value of a Shell
    • Field Detail

      • start

        int start
      • end

        int end
      • step

        int step
      • shell

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

      • AlphaEffect

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

      • 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 -
      • fadeOnClose

        public static void fadeOnClose​(org.eclipse.swt.widgets.Shell shell,
                                       int duration,
                                       IMovement easing,
                                       AnimationRunner runner)
        Add a listener that will fade the window when it get closed.
        Parameters:
        shell -
        duration -
        easing -
        runner - : The AnimationRunner to use, or null