public class CubicRotationTransition extends Transition
_fps, _T, _transitionManager, DEFAULT_FPS, DEFAULT_T, DIR_DOWN, DIR_LEFT, DIR_RIGHT, DIR_UP, IS_LINUX_OS, IS_MAC_OS
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
protected void |
endTransition(org.eclipse.swt.graphics.Image from,
org.eclipse.swt.graphics.Image to,
org.eclipse.swt.graphics.GC gc,
double direction) |
double |
getQuality()
Returns a percentage representing the quality of image slicing
|
protected void |
initTransition(org.eclipse.swt.graphics.Image from,
org.eclipse.swt.graphics.Image to,
org.eclipse.swt.graphics.GC gc,
double direction) |
void |
setQuality(double quality)
Sets the quality of image slicing as a percentage in
the interval from 0 to 100 inclusive
|
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) |
doEvents, getFPS, getTotalTransitionTime, setFPS, setTotalTransitionTime, start
public CubicRotationTransition(TransitionManager transitionManager)
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
)transitionManager
- the transition manager to be used to manage transitionspublic CubicRotationTransition(TransitionManager transitionManager, long fps, long T)
fps
and total transition time of T
milliseconds.transitionManager
- the transition manager to be used to manage transitionsfps
- number of frames per secondT
- the total time the transition effect will take in millisecondsprotected void initTransition(org.eclipse.swt.graphics.Image from, org.eclipse.swt.graphics.Image to, org.eclipse.swt.graphics.GC gc, double direction)
initTransition
in class Transition
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)
stepTransition
in class Transition
protected void endTransition(org.eclipse.swt.graphics.Image from, org.eclipse.swt.graphics.Image to, org.eclipse.swt.graphics.GC gc, double direction)
endTransition
in class Transition
public void setQuality(double quality)
quality
- is a percentage from 0 to 100 inclusivepublic double getQuality()