public class MorphTransition extends Transition
| Modifier and Type | Method and Description |
|---|---|
boolean |
animate()
Allows the animation to reduce "repaint" calls when it returns false.
|
Transition |
copy(boolean reverse)
Create a copy of the transition, usually the transition used is a copy.
|
static MorphTransition |
create(int duration)
Creates a transition with the given duration, this transition should be modified with the
builder methods such as morph
|
void |
initTransition()
Callback thats invoked before a transition begins, the source form may be null
for the first form in the application.
|
MorphTransition |
morph(String cmp)
Morphs the component with the given source name in the source container hierarchy
to the component with the same name in the destination hierarchy
|
MorphTransition |
morph(String source,
String to)
Morphs the component with the given source name in the source container hierarchy
to the component with the given name in the destination hierarchy
|
void |
paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
cleanSource, cleanup, getDestination, getSource, hideInterformContainers, init, paintInterformContainers, showInterformContainerspublic Transition copy(boolean reverse)
copy in class Transitionreverse - creates a new transition instance with "reverse" behavior useful
for signifying "back" operationspublic static MorphTransition create(int duration)
duration - the duration of the transitionpublic MorphTransition morph(String cmp)
cmp - the compoennt namepublic MorphTransition morph(String source, String to)
source - to - public final void initTransition()
initTransition in class Transitionpublic boolean animate()
Display class.animate in interface Animationanimate in class Transitionpublic void paint(Graphics g)
paint in interface Animationpaint in class Transitiong - graphics context