Package javax.media.j3d
Interface GraphStructureChangeListener
public interface GraphStructureChangeListener
Listener interface for monitoring structural changes to live scene
graphs. BranchGroup additions, removals and moves are reported.
- Since:
- Java 3D 1.4
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbranchGroupAdded(Object parent, BranchGroup child) Invoked when a branch group is added.voidbranchGroupMoved(Object oldParent, Object newParent, BranchGroup child) Invoked when a branch group is moved.voidbranchGroupRemoved(Object parent, BranchGroup child) Invoked when a branch group is removed.
-
Method Details
-
branchGroupAdded
Invoked when a branch group is added. Called just before the child is added to the parent. Parent can be either a BranchGroup or a Locale.- Parameters:
parent- the parent of the child being addedchild- the child being added
-
branchGroupRemoved
Invoked when a branch group is removed. Called just after the child has been removed from the parent. Parent can be either a BranchGroup or a Locale.- Parameters:
parent- the parent of the child being addedchild- the child being added
-
branchGroupMoved
Invoked when a branch group is moved. Called after a child has been moved to it's new parent. This call differs from the other methods in that the child is live when this method is called.- Parameters:
oldParent- the original parent of the child being movednewParent- the new parent of the child being movedchild- the child being moved
-