public class BubbleTransition extends Transition
A Transitions that animates the destination component as a growing window until the destination is displayed in place. The Bubble window can be round on supported platforms
Constructor and Description |
---|
BubbleTransition()
Creates a Bubble Transition
|
BubbleTransition(int duration)
Creates a Bubble Transition
|
BubbleTransition(int duration,
String componentName)
Creates a Bubble 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 |
getDuration()
The duration for the 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 |
setComponentName(String componentName)
the name of the component from the source Form that
this transition should start from.
|
void |
setDuration(int duration)
The duration for the transition
|
void |
setRoundBubble(boolean roundBubble)
Determines if the Bubble is a round circle or a rectangle.
|
cleanSource, getDestination, getSource, hideInterformContainers, init, paintInterformContainers, showInterformContainers
public BubbleTransition()
public BubbleTransition(int duration)
duration
- the duration of the transitionpublic BubbleTransition(int duration, String componentName)
duration
- the duration of the transitioncomponentName
- the name of the component from the source Form that
this transition should start from.public void setComponentName(String componentName)
componentName
- name of the component to start the transition frompublic void initTransition()
Transition
initTransition
in class Transition
public boolean animate()
Transition
Display
class.animate
in interface Animation
animate
in class Transition
public void paint(Graphics g)
Transition
paint
in interface Animation
paint
in class Transition
g
- graphics contextpublic void setRoundBubble(boolean roundBubble)
roundBubble
- true if the bubble should be roundpublic void cleanup()
Transition
cleanup
in class Transition
public int getDuration()
public void setDuration(int duration)
duration
- the duration to setpublic Transition copy(boolean reverse)
copy
in class Transition
reverse
- creates a new transition instance with "reverse" behavior useful
for signifying "back" operations