org.iso.mpeg.mpegj.scene
Interface SceneManager
- public interface SceneManager
An interface that allows access to the MPEG-4 terminal's
native scene. An instance is obtained using getSceneManager()
in the MPEGJTerminal class.
Note that scene graph access requires first obtaining a Scene instance.
The only normative way to get a Scene instance is through a
notification on a SceneListener instance.
- See Also:
MpegjTerminal
,
SceneListener
,
Scene
addSceneListener
public void addSceneListener(SceneListener listener)
- Add a SceneListener to this scene manager. The listener will
be informed of important changes to the scene, and will be
given the appropriate Scene instance that will allow modification
to nodes and fields of the scene. The base specification does not limit
the number of SceneListeners that may be registered.
- Parameters:
listener
- the SceneListener instance to add.
removeSceneListener
public void removeSceneListener(SceneListener listener)
throws BadParameterException
- Remove a SceneListener from the scene manager.
- Parameters:
listener
- the SceneListener instance to remove.- Throws:
- BadParameterException - Thrown if the specified listener
was not found on the scene manager's list of listeners.