|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.lwuit.animations.Transition
public abstract class Transition
Represents a transition animation between two forms this class is used internally
by Display to play an animation when moving from one form to the next. A transition
can be installed on a Form
object using the in/out transitions, for ease of use
LookAndFeel
has support for default transitions.
Constructor Summary | |
---|---|
Transition()
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Transition()
Method Detail |
---|
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 leadpublic 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" operations
protected final void cleanSource()
public abstract boolean animate()
Animation
Display
class.
animate
in interface Animation
public abstract void paint(Graphics g)
Animation
paint
in interface Animation
g
- graphics context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |