public abstract class Transition extends Object implements Animation
Form
object using the in/out transitions, for ease of use
LookAndFeel
has support for default transitions.Constructor and Description |
---|
Transition() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
animate()
Allows the animation to reduce "repaint" calls when it returns false.
|
protected void |
cleanSource()
Allows setting the source form to null to save memory if the transition doesn't need
it in memory.
|
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.
|
Component |
getDestination()
Returns the destination form that should be set once animation is completed
|
Component |
getSource()
Returns the source form which is the form from which the animation is starting.
|
protected void |
hideInterformContainers()
Sets visibility on all shared InterFormContainers between the source and destination
to be hidden.
|
void |
init(Component source,
Component destination)
Invoked by
Display to set the source and destination forms. |
void |
initTransition()
Callback thats invoked before a transition begins, the source form may be null
for the first form in the application.
|
abstract void |
paint(Graphics g)
Draws the animation, within a component the standard paint method would be
invoked since it bares the exact same signature.
|
protected void |
paintInterformContainers(Graphics g)
Paints all shared InterFormContainers between the source and destination.
|
protected void |
showInterformContainers()
Sets visibility on all shared InterFormContainers between the source and destination
to be visible.
|
public final void init(Component source, Component destination)
Display
to set the source and destination forms.
This method should not be invoked by developers.source
- the source form from which the transition originatesdestination
- the destination form to which the transition will leadprotected void hideInterformContainers()
protected void showInterformContainers()
protected void paintInterformContainers(Graphics g)
g
- Graphics context to paint to.public void initTransition()
public final Component getDestination()
public final Component getSource()
public void cleanup()
public Transition copy(boolean reverse)
reverse
- creates a new transition instance with "reverse" behavior useful
for signifying "back" operationsprotected final void cleanSource()
public abstract boolean animate()
Display
class.