public class FlipTransition extends Transition
A Transitions that flips between 2 components/forms using perspective transform where available.
Notice that this looks rather different on devices as perspective transform is available there but isn't
on the simulator.

| Constructor and Description |
|---|
FlipTransition()
Creates a Flip Transition
|
FlipTransition(int bgColor)
Creates a Flip Transition
|
FlipTransition(int bgColor,
int duration)
Creates a Flip Transition
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
animate()
Allows the animation to reduce "repaint" calls when it returns false.
|
void |
cleanup()
Optional operation to cleanup the garbage left over by a running transition
|
Transition |
copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
int |
getBgColor()
The background color that is painted behind the flipping effect or -1 to use the paintBackgrounds method instead
|
int |
getDuration()
The duration for the flip transition
|
void |
initTransition()
Callback thats invoked before a transition begins, the source form may be null
for the first form in the application.
|
void |
paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
void |
setBgColor(int bgColor)
The background color that is painted behind the flipping effect or -1 to use the paintBackgrounds method instead
|
void |
setDuration(int duration)
The duration for the flip transition
|
cleanSource, getDestination, getSource, hideInterformContainers, init, paintInterformContainers, showInterformContainerspublic FlipTransition()
public FlipTransition(int bgColor)
bgColor - the color to paint in the background when the transition
paints, use -1 to not paint a background colorpublic FlipTransition(int bgColor,
int duration)
bgColor - the color to paint in the background when the transition
paints, use -1 to not paint a background colorduration - the duration of the transitionpublic void initTransition()
TransitioninitTransition in class Transitionpublic boolean animate()
TransitionDisplay class.animate in interface Animationanimate in class Transitionpublic void paint(Graphics g)
Transitionpaint in interface Animationpaint in class Transitiong - graphics contextpublic void cleanup()
Transitioncleanup in class Transitionpublic int getDuration()
public void setDuration(int duration)
duration - the duration to setpublic int getBgColor()
public void setBgColor(int bgColor)
bgColor - the bgColor to setpublic Transition copy(boolean reverse)
copy in class Transitionreverse - creates a new transition instance with "reverse" behavior useful
for signifying "back" operations