|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.animation.transitions.ScreenTransition
public class ScreenTransition
This class is used to facilitate animated transitions in an application.
ScreenTransition is given a container in a Swing application.
When the application wishes to transition from one state of the application
to another, the startTransition
method is called, which
calls back into the application to first reset the state of the
application, then set up the following state of the application.
Then ScreenTransition runs an animation from the previous state
of the application to the new state.
Constructor Summary | |
---|---|
ScreenTransition(javax.swing.JComponent transitionComponent,
TransitionTarget transitionTarget,
org.jdesktop.animation.timing.Animator animator)
` Constructor that takes an Animator that will be used to drive the ScreenTransition. |
|
ScreenTransition(javax.swing.JComponent transitionComponent,
TransitionTarget transitionTarget,
int duration)
Constructor that takes a simple duration. |
Method Summary | |
---|---|
org.jdesktop.animation.timing.Animator |
getAnimator()
Returns Animator object that drives this ScreenTransition. |
void |
setAnimator(org.jdesktop.animation.timing.Animator animator)
Sets animator that drives this ScreenTransition. |
void |
start()
Begin the transition from the current application state to the next one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScreenTransition(javax.swing.JComponent transitionComponent, TransitionTarget transitionTarget, int duration)
public ScreenTransition(javax.swing.JComponent transitionComponent, TransitionTarget transitionTarget, org.jdesktop.animation.timing.Animator animator)
start()
is called or Animator.start()
is called.
java.lang.IllegalStateException
- if animator is already running
java.lang.IllegalArgumentException
- animator must be non-nullAnimator.isRunning()
,
Animator.start()
Method Detail |
---|
public org.jdesktop.animation.timing.Animator getAnimator()
public void setAnimator(org.jdesktop.animation.timing.Animator animator)
start()
is called or Animator.start()
is called.
animator
- non-null Animator object that will drive this
ScreenTransition. Animator cannot be running when this is called.
java.lang.IllegalStateException
- if animator is already running
java.lang.IllegalArgumentException
- animator must be non-nullAnimator.isRunning()
public void start()
setupNextScreen()
will
be called to allow the application to set up the state of the next
screen. After this call, the transition animation will begin.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |