public class SceneGraphPathObserver extends Object implements AppearanceListener, TransformationListener, SceneGraphComponentListener
Constructor and Description |
---|
SceneGraphPathObserver() |
SceneGraphPathObserver(SceneGraphPath path) |
Modifier and Type | Method and Description |
---|---|
void |
addAppearanceListener(AppearanceListener listener) |
void |
addTransformationListener(TransformationListener listener) |
void |
appearanceChanged(AppearanceEvent ev) |
void |
childAdded(SceneGraphComponentEvent ev) |
void |
childRemoved(SceneGraphComponentEvent ev) |
void |
childReplaced(SceneGraphComponentEvent ev) |
void |
dispose() |
void |
removeAppearanceListener(AppearanceListener listener) |
void |
removeTransformationListener(TransformationListener listener) |
void |
setPath(SceneGraphPath newPath)
TODO: remove only the listeners from nodes that
are not part of the new path!
calling this method results in changing the observed path.
|
void |
transformationMatrixChanged(TransformationEvent ev) |
void |
visibilityChanged(SceneGraphComponentEvent ev) |
public SceneGraphPathObserver()
public SceneGraphPathObserver(SceneGraphPath path)
public void setPath(SceneGraphPath newPath)
newPath
- public void dispose()
public void addTransformationListener(TransformationListener listener)
public void removeTransformationListener(TransformationListener listener)
public void addAppearanceListener(AppearanceListener listener)
public void removeAppearanceListener(AppearanceListener listener)
public void appearanceChanged(AppearanceEvent ev)
appearanceChanged
in interface AppearanceListener
public void transformationMatrixChanged(TransformationEvent ev)
transformationMatrixChanged
in interface TransformationListener
public void childAdded(SceneGraphComponentEvent ev)
childAdded
in interface SceneGraphComponentListener
public void childRemoved(SceneGraphComponentEvent ev)
childRemoved
in interface SceneGraphComponentListener
public void childReplaced(SceneGraphComponentEvent ev)
childReplaced
in interface SceneGraphComponentListener
public void visibilityChanged(SceneGraphComponentEvent ev)
visibilityChanged
in interface SceneGraphComponentListener