All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.media.j3d.SceneGraphObject
|
+----java.media.j3d.Node
originalNode into
the current node.
public static final int ALLOW_PICK
public static final int ALLOW_BOUNDS_READ
public static final int ALLOW_BOUNDS_WRITE
public Node()
public final void setBounds(Bounds bounds)
public final Bounds getBounds()
public Node cloneTree()
cloneNode
and then cloneTree
is called for each child node. For Leaf Nodes, component
data can either be duplicated or be made a reference to the original
data. Leaf Node cloneTree behavior is determined by the
duplicateOnCloneTree flag found in every Leaf Node's
component data class and by the forceDuplicate paramter.
public Node cloneTree(boolean forceDuplicate)
cloneNode
and then cloneTree is called for each child node.
For Leaf Nodes, component
data can either be duplicated or be made a reference to the original
data. Leaf Node cloneTree behavior is determined by the
duplicateOnCloneTree flag found in every Leaf Node's
component data class and by the forceDuplicate paramter.
true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree determines whether data is
duplicated or copied.
public Node cloneTree(boolean forceDuplicate,
boolean allowDanglingReference)
cloneNode and
then cloneTree is called for each child node. For
Leaf Nodes, component
data can either be duplicated or be made a reference to the original
data. Leaf Node cloneTree behavior is determined by the
duplicateOnCloneTree flag found in every Leaf Node's
component data class and by the forceDuplicate paramter.
true, causes the
duplicateOnCloneTree
flag to be ignored. When false, the value of each node's
duplicateOnCloneTree determines whether data is
duplicated or copied.
true allows
the cloneTree
method to complete even whan a dangling reference is discovered. When
this parameter is false a
DanglingReferenceException is generated as
soon as cloneTree detects this situation.
allowDanglingReference parameter is false.
public Node cloneNode(boolean forceDuplicate)
cloneTree to duplicate the current node.
cloneNode should be overridden by any user subclassed
objects. All subclasses must have their cloneNode
method consist of the following lines:
public Node cloneNode(boolean forceDuplicate) {
UserSubClass usc = new UserSubClass();
usc.duplicateNode(this, forceDuplicate);
return usc;
}
true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree variable determines whether
NodeComponent data is duplicated or copied.
public void duplicateNode(Node originalNode,
boolean forceDuplicate)
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
For any NodeComponent objects
contained by the object being duplicated, each NodeComponent
object's duplicateOnCloneTree value is used to determine
whether the NodeComponent should be duplicated in the new node
or if just a reference to the current node should be placed in the
new node. This flag can be overridden by setting the
forceDuplicate parameter in the cloneTree
method to true.
true, causes the
duplicateOnCloneTree flag to be ignored. When
false, the value of each node's
duplicateOnCloneTree variable determines whether
NodeComponent data is duplicated or copied.
All Packages Class Hierarchy This Package Previous Next Index