|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.cmu.sun.animation.TransitionManager
public class TransitionManager
Manages scene transitions after each user action. After each user action, the TransitionManager is used as a central touch-point to transition the scene to an updated state. First, the Model components are told to update their listeners. This causes the Views to add their update commands to the AnimationPlans in the TransitionManager. Finally, the TransitionManager runs each of the three plans: preperation, transition, and consolidation.
| Field Summary | |
|---|---|
private static AnimationPlan |
consolidationPlan
|
private static AnimationPlan |
prepPlan
|
private static AnimationPlan |
transitionPlan
|
| Constructor Summary | |
|---|---|
TransitionManager()
|
|
| Method Summary | |
|---|---|
static AnimationPlan |
getConsolidationPlan()
An AnimationPlan meant to consolidate the scene after the transition. |
static AnimationPlan |
getPrepPlan()
An AnimationPlan meant to prepare the Scene for animation. |
static AnimationPlan |
getTransitionPlan()
An AnimationPlan meant to visually transition the scene from one state to the next. |
private static void |
runConsolidationPlan()
Runs the AnimationPlan that cleans up after the transition. |
private static void |
runPrepPlan()
Runs the AnimationPlan to prepare the scene for the transition. |
private static void |
runTransitionPlan()
Runs the AnimationPlan that actuially performs the visual transition. |
static void |
updateViews()
Notifys all ModelListeners, then runs though the Prep, Transition and Consolidation plans. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static AnimationPlan prepPlan
private static AnimationPlan transitionPlan
private static AnimationPlan consolidationPlan
| Constructor Detail |
|---|
public TransitionManager()
| Method Detail |
|---|
public static AnimationPlan getPrepPlan()
public static AnimationPlan getTransitionPlan()
public static AnimationPlan getConsolidationPlan()
public static void updateViews()
private static void runPrepPlan()
private static void runTransitionPlan()
private static void runConsolidationPlan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||