public class TransitionManager
extends java.lang.Object
Transitionable object.| Modifier and Type | Field and Description |
|---|---|
(package private) org.eclipse.swt.graphics.Color |
backgroundColor |
(package private) org.eclipse.swt.graphics.Image |
backgroundImage |
| Constructor and Description |
|---|
TransitionManager(org.eclipse.swt.custom.CTabFolder tabFolder)
Constructs a transition manager to handle transitions on the provided
CTabFolder as the transitionable object. |
TransitionManager(org.eclipse.swt.widgets.TabFolder tabFolder)
Constructs a transition manager to handle transitions on the provided
TabFolder as the transitionable object. |
TransitionManager(Transitionable transitionable)
Constructs a transition manager to handle transitions on the provided
transitionable object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTransitionListener(TransitionListener transitionListener)
Adds a new transition listener to be invoked at the end of each transition
|
void |
clearControlImages()
Clears the control images used in the
transitions processing.
|
void |
finalize() |
org.eclipse.swt.graphics.Color |
getBackground()
Returns the background color of the transition frame
|
org.eclipse.swt.graphics.Image |
getBackgroundImage()
Returns the background image of the transition frame
|
Transition |
getTransition()
Returns the current transition effect
|
Transitionable |
getTransitionable()
Returns the transitionable object
|
void |
removeTransitionListener(TransitionListener transitionListener)
Removes a transition listener from the list of transition listeners
|
void |
setBackground(org.eclipse.swt.graphics.Color color)
Sets the background color of the transition frame
|
void |
setBackgroundImage(org.eclipse.swt.graphics.Image image)
Sets the background image of the transition frame
|
void |
setControlImages(org.eclipse.swt.graphics.Image[] images)
Sets the control images used in the transitions processing.
|
void |
setTransition(Transition transition)
Sets and changes the transition effect
|
void |
startTransition(int fromIndex,
int toIndex,
double direction)
Carries out the transition effect on the transitionable object by transitioning from
fromIndex to toIndex in the direction direction |
org.eclipse.swt.graphics.Color backgroundColor
org.eclipse.swt.graphics.Image backgroundImage
public TransitionManager(Transitionable transitionable)
transitionable - the transitionable object to perform transitions onpublic TransitionManager(org.eclipse.swt.custom.CTabFolder tabFolder)
CTabFolder as the transitionable object.tabFolder - the CTabFolder as the transitionable object to perform transitions onpublic TransitionManager(org.eclipse.swt.widgets.TabFolder tabFolder)
TabFolder as the transitionable object.tabFolder - the TabFolder as the transitionable object to perform transitions onpublic void startTransition(int fromIndex,
int toIndex,
double direction)
fromIndex to toIndex in the direction directionfromIndex - the index of the Control to start transition fromtoIndex - the index of the Control to make transition todirection - the direction of the transitionpublic void setControlImages(org.eclipse.swt.graphics.Image[] images)
images - Control images used in the transitions
processing.public void clearControlImages()
public void finalize()
finalize in class java.lang.Objectpublic void setTransition(Transition transition)
transition - the transition effect to be applied on the transitionable objectpublic Transition getTransition()
public void setBackground(org.eclipse.swt.graphics.Color color)
color - the background color of the transition framepublic org.eclipse.swt.graphics.Color getBackground()
public void setBackgroundImage(org.eclipse.swt.graphics.Image image)
image - the background image of the transition framepublic org.eclipse.swt.graphics.Image getBackgroundImage()
public Transitionable getTransitionable()
public void addTransitionListener(TransitionListener transitionListener)
transitionListener - the new transition listener to be invoked at the end of each transitionpublic void removeTransitionListener(TransitionListener transitionListener)
transitionListener - the transition listener to be removed