org.eclipse.nebula.effects.stw.transitions
Class CubicRotationTransition

java.lang.Object
  extended by org.eclipse.nebula.effects.stw.Transition
      extended by org.eclipse.nebula.effects.stw.transitions.CubicRotationTransition

public class CubicRotationTransition
extends Transition

A cubic rotation effect. Showing two sides of a cube, the cube rotates from one side to the other side.

Author:
Ahmed Mahran (ahmahran@gmail.com)

Field Summary
 
Fields inherited from class org.eclipse.nebula.effects.stw.Transition
DEFAULT_FPS, DEFAULT_T, DIR_DOWN, DIR_LEFT, DIR_RIGHT, DIR_UP
 
Constructor Summary
CubicRotationTransition(TransitionManager transitionManager)
          This constructor creates a CubicRotationTransition with number of frames per second of Transition.DEFAULT_FPS and total transition time of Transition.DEFAULT_T milliseconds.
CubicRotationTransition(TransitionManager transitionManager, long fps, long T)
          This constructor creates a CubicRotationTransition with number of frames per second of fps and total transition time of T milliseconds.
 
Method Summary
 double getQuality()
          Returns a percentage representing the quality of image slicing
 void setQuality(double quality)
          Sets the quality of image slicing as a percentage in the interval from 0 to 100 inclusive
 
Methods inherited from class org.eclipse.nebula.effects.stw.Transition
getFPS, getTotalTransitionTime, setFPS, setTotalTransitionTime, start
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubicRotationTransition

public CubicRotationTransition(TransitionManager transitionManager)
This constructor creates a CubicRotationTransition with number of frames per second of Transition.DEFAULT_FPS and total transition time of Transition.DEFAULT_T milliseconds. It is similar to new CubicRotationTransition(transitionManager, Transition.DEFAULT_FPS, Transition.DEFAULT_T)

Parameters:
transitionManager - the transition manager to be used to manage transitions

CubicRotationTransition

public CubicRotationTransition(TransitionManager transitionManager,
                               long fps,
                               long T)
This constructor creates a CubicRotationTransition with number of frames per second of fps and total transition time of T 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 Detail

setQuality

public void setQuality(double quality)
Sets the quality of image slicing as a percentage in the interval from 0 to 100 inclusive

Parameters:
quality - is a percentage from 0 to 100 inclusive

getQuality

public double getQuality()
Returns a percentage representing the quality of image slicing

Returns:
a percentage representing the quality of image slicing