Lines Matching defs:scene

34  * transitions for scene changes is not required; by default, a Scene change
36 * situations. Specifying other transitions for particular scene changes is
44 * that transition to the from/to scene information in that tag.
45 * For example, here is a resource file that declares several scene
52 * creating a scene from a layout in code by calling
82 * Sets the transition to be used for any scene change for which no
86 * @param transition The default transition to be used for scene changes.
108 * Sets a specific transition to occur when the given scene is entered.
110 * @param scene The scene which, when applied, will cause the given
112 * @param transition The transition that will play when the given scene is
116 public void setTransition(Scene scene, Transition transition) {
117 mSceneTransitions.put(scene, transition);
124 * @param fromScene The scene being exited when the given transition will
126 * @param toScene The scene being entered when the given transition will
128 * @param transition The transition that will play when the given scene is
142 * Returns the Transition for the given scene being entered. The result
143 * depends not only on the given scene, but also the scene which the
146 * @param scene The scene being entered
147 * @return The Transition to be used for the given scene change. If no
148 * Transition was specified for this scene change, the default transition
151 private Transition getTransition(Scene scene) {
153 ViewGroup sceneRoot = scene.getSceneRoot();
158 ArrayMap<Scene, Transition> sceneTransitionMap = mScenePairTransitions.get(scene);
167 transition = mSceneTransitions.get(scene);
172 * This is where all of the work of a transition/scene-change is
174 * transition, exits the current Scene, enters the new scene, captures
178 * @param scene The scene being entered
179 * @param transition The transition to play for this scene change
181 private static void changeScene(Scene scene, Transition transition) {
183 final ViewGroup sceneRoot = scene.getSceneRoot();
201 scene.enter();
327 // Notify previous scene that it is being exited
335 * Change to the given scene, using the
336 * appropriate transition for this particular scene change
340 * @param scene The Scene to change to
342 public void transitionTo(Scene scene) {
345 changeScene(scene, getTransition(scene));
349 * Convenience method to simply change to the given scene using
352 * @param scene The Scene to change to
354 public static void go(Scene scene) {
355 changeScene(scene, sDefaultTransition);
359 * Convenience method to simply change to the given scene using
363 * result in the scene changing without any transition running, and is
364 * equivalent to calling {@link Scene#exit()} on the scene root's
365 * current scene, followed by {@link Scene#enter()} on the scene
366 * specified by the <code>scene</code> parameter.</p>
368 * @param scene The Scene to change to
369 * @param transition The transition to use for this scene change. A
370 * value of null causes the scene change to happen with no transition.
372 public static void go(Scene scene, Transition transition) {
373 changeScene(scene, transition);
378 * to a new scene defined by all changes within the given scene root between
390 * Convenience method to animate to a new scene defined by all changes within
391 * the given scene root between calling this method and the next rendering frame.
393 * scene root and then post a request to run a transition on the next frame.
394 * At that time, the new values in the scene root will be captured and changes
401 * the same scene root), only the first call will trigger capturing values
402 * and exiting the current scene. Subsequent calls to the method with the
403 * same scene root during the same frame will be ignored.</p>
430 * Ends all pending and ongoing transitions on the specified scene root.