Package javax.media.j3d
Interface GraphStructureChangeListener
-
public interface GraphStructureChangeListenerListener interface for monitoring structural changes to live scene graphs. BranchGroup additions, removals and moves are reported.- Since:
- Java 3D 1.4
- See Also:
VirtualUniverse.addGraphStructureChangeListener(javax.media.j3d.GraphStructureChangeListener)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbranchGroupAdded(java.lang.Object parent, BranchGroup child)Invoked when a branch group is added.voidbranchGroupMoved(java.lang.Object oldParent, java.lang.Object newParent, BranchGroup child)Invoked when a branch group is moved.voidbranchGroupRemoved(java.lang.Object parent, BranchGroup child)Invoked when a branch group is removed.
-
-
-
Method Detail
-
branchGroupAdded
void branchGroupAdded(java.lang.Object parent, BranchGroup child)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
void branchGroupRemoved(java.lang.Object parent, BranchGroup child)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
void branchGroupMoved(java.lang.Object oldParent, java.lang.Object newParent, BranchGroup child)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
-
-