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, showInterformContainers
public Transition copy(boolean reverse)
copy
in class Transition
reverse
- 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 Transition
public boolean animate()
Display
class.animate
in interface Animation
animate
in class Transition
public void paint(Graphics g)
paint
in interface Animation
paint
in class Transition
g
- graphics context