Class SlideTransition

java.lang.Object
org.eclipse.nebula.effects.stw.Transition
org.eclipse.nebula.effects.stw.transitions.SlideTransition

public class SlideTransition
extends Transition
Applies a slide effect. The from control slides out and the the to control slides in smoothly accelerating up then down after a while until it stops.
  • Constructor Details

    • SlideTransition

      public SlideTransition​(TransitionManager transitionManager)
      This constructor creates a SlideTransition with number of frames per second of Transition.DEFAULT_FPS and total transition time of Transition.DEFAULT_T milliseconds. It is similar to new SlideTransition(transitionManager, Transition.DEFAULT_FPS, Transition.DEFAULT_T)
      Parameters:
      transitionManager - the transition manager to be used to manage transitions
    • SlideTransition

      public SlideTransition​(TransitionManager transitionManager, long fps, long T)
      This constructor creates a SlideTransition with fps number of frames per second and T total transition time in milliseconds.
      Parameters:
      transitionManager - the transition manager to be used to manage transitions
      fps - number of frames per second
      T - the total time the transition effect will take in milliseconds
  • Method Details

    • initTransition

      protected void initTransition​(org.eclipse.swt.graphics.Image from, org.eclipse.swt.graphics.Image to, org.eclipse.swt.graphics.GC gc, double direction)
      Specified by:
      initTransition in class Transition
    • stepTransition

      protected void stepTransition​(long t, org.eclipse.swt.graphics.Image from, org.eclipse.swt.graphics.Image to, org.eclipse.swt.graphics.GC gc, double direction)
      Specified by:
      stepTransition in class Transition
    • endTransition

      protected void endTransition​(org.eclipse.swt.graphics.Image from, org.eclipse.swt.graphics.Image to, org.eclipse.swt.graphics.GC gc, double direction)
      Specified by:
      endTransition in class Transition