All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.NodeComponent

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent

public abstract class NodeComponent
extends SceneGraphObject
NodeComponent is a common superclass for all scene graph node component objects such as: Geometry, Appearance, Material, Texture, etc.


Constructor Index

 o NodeComponent()

Method Index

 o cloneNodeComponent()
Used to create a new instance of a NodeComponent object.
 o duplicateNodeComponent(NodeComponent)
Copies all node information from originalNodeComponent into the current node.
 o getDuplicateOnCloneTree()
Returns this node's duplicateOnCloneTree value.
 o setDuplicateOnCloneTree(boolean)
Sets this node's duplicateOnCloneTree value.

Constructors

 o NodeComponent
 public NodeComponent()

Methods

 o setDuplicateOnCloneTree
 public final void setDuplicateOnCloneTree(boolean duplicate)
Sets this node's duplicateOnCloneTree value. The duplicateOnCloneTree value is used to determine if NodeComponent objects are to be duplicated or referenced during a cloneTree operation. A value of true means that this NodeComponent object should be duplicated, while a value of false indicates that this NodeComponent object's reference will be copied into the newly cloned object. This value can be overriden via the forceDuplicate parameter of the cloneTree method.

Parameters:
duplicate - the value to set.
See Also:
cloneTree
 o getDuplicateOnCloneTree
 public final boolean getDuplicateOnCloneTree()
Returns this node's duplicateOnCloneTree value. The duplicateOnCloneTree value is used to determine if NodeComponent objects are to be duplicated or referenced during a cloneTree operation. A value of true means that this NodeComponent object should be duplicated, while a value of false indicates that this NodeComponent object's reference will be copied into the newly cloned object. This value can be overriden via the forceDuplicate parameter of the cloneTree method.

Returns:
the value of this node's duplicateOnCloneTree
See Also:
cloneTree
 o cloneNodeComponent
 public NodeComponent cloneNodeComponent()
Used to create a new instance of a NodeComponent object. This routine is called by cloneNode to duplicate the current node. cloneNodeComponent should be overridden by any user subclassed NodeComponent objects. All subclasses must have their cloneNodeComponent method consist of the following lines:

     public NodeComponent cloneNodeComponent() {
         UserNodeComponent unc = new UserNodeComponent();
         unc.duplicateNodeComponent(this);
         return unc;
     }
 

See Also:
duplicateNodeComponent, cloneNode, cloneTree
 o duplicateNodeComponent
 public void duplicateNodeComponent(NodeComponent originalNodeComponent)
Copies all node information from originalNodeComponent into the current node. This method is called from the cloneNodeComponent method which is, in turn, called by the cloneNode method.

See Also:
cloneNodeComponent, cloneNode, cloneTree

All Packages  Class Hierarchy  This Package  Previous  Next  Index