| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Leaf javax.media.j3d.Link
Link | public class Link extends Leaf (Code) | | A Link leaf node allows an application to reference a shared graph,
rooted by a SharedGroup node, from within a branch graph or another
shared graph.
Any number of Link nodes can refer to the same SharedGroup node.
|
Field Summary | |
final public static int | ALLOW_SHARED_GROUP_READ For Link nodes, specifies that the node allows access to
its object's SharedGroup information. | final public static int | ALLOW_SHARED_GROUP_WRITE For Link nodes, specifies that the node allows writing
its object's SharedGroup information. |
Constructor Summary | |
public | Link() Constructs a Link node object that does not yet point to a
SharedGroup node. | public | Link(SharedGroup sharedGroup) Constructs a Link node object that points to the specified
SharedGroup node. |
Method Summary | |
public Node | cloneNode(boolean forceDuplicate) Used to create a new instance of the node. | void | createRetained() Creates the retained mode LinkRetained object that this
Link object will point to. | void | duplicateAttributes(Node originalNode, boolean forceDuplicate) Copies all Link information from
originalNode into
the current node. | public SharedGroup | getSharedGroup() Retrieves the node's SharedGroup reference. | public void | setSharedGroup(SharedGroup sharedGroup) Sets the node's SharedGroup reference. |
ALLOW_SHARED_GROUP_READ | final public static int ALLOW_SHARED_GROUP_READ(Code) | | For Link nodes, specifies that the node allows access to
its object's SharedGroup information.
|
ALLOW_SHARED_GROUP_WRITE | final public static int ALLOW_SHARED_GROUP_WRITE(Code) | | For Link nodes, specifies that the node allows writing
its object's SharedGroup information.
|
Link | public Link()(Code) | | Constructs a Link node object that does not yet point to a
SharedGroup node.
|
Link | public Link(SharedGroup sharedGroup)(Code) | | Constructs a Link node object that points to the specified
SharedGroup node.
Parameters: sharedGroup - the SharedGroup node |
cloneNode | public Node cloneNode(boolean forceDuplicate)(Code) | | Used to create a new instance of the node. This routine is called
by cloneTree to duplicate the current node.
The cloned Link node will refer to the same
SharedGroup as the original node. The SharedGroup referred to by
this Link node will not be cloned.
Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also: Node.cloneTree See Also: Node.cloneNode See Also: Node.duplicateNode See Also: NodeComponent.setDuplicateOnCloneTree |
createRetained | void createRetained()(Code) | | Creates the retained mode LinkRetained object that this
Link object will point to.
|
duplicateAttributes | void duplicateAttributes(Node originalNode, boolean forceDuplicate)(Code) | | Copies all Link information from
originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
Parameters: originalNode - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. exception: RestrictedAccessException - if this object is part of a liveor compiled scenegraph. See Also: Node.duplicateNode See Also: Node.cloneTree See Also: NodeComponent.setDuplicateOnCloneTree |
getSharedGroup | public SharedGroup getSharedGroup()(Code) | | Retrieves the node's SharedGroup reference.
the SharedGroup node exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
setSharedGroup | public void setSharedGroup(SharedGroup sharedGroup)(Code) | | Sets the node's SharedGroup reference.
Parameters: sharedGroup - the SharedGroup node to reference exception: CapabilityNotSetException - if appropriate capability isnot set and this object is part of live or compiled scene graph |
|
|