vrml.field
Class SFNode

java.lang.Object
  extended by vrml.Field
      extended by vrml.field.SFNode
All Implemented Interfaces:
java.lang.Cloneable

public class SFNode
extends Field

Represents a VRML SFNode field in Java.


Constructor Summary
SFNode()
          Construct a default SFNode field.
SFNode(BaseNode node)
          Construct an SFNode field.
 
Method Summary
 java.lang.Object clone()
          Create a shallow copy of the SFNode; the underlying BaseNode is not copied.
 BaseNode getValue()
          Get the VRML node stored in this SFNode.
 void setValue(BaseNode node)
          Set the VRML node stored in this SFNode.
 void setValue(ConstSFNode node)
          Set the VRML node stored in this SFNode.
 void setValue(SFNode node)
          Set the VRML node stored in this SFNode.
 
Methods inherited from class vrml.Field
dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SFNode

public SFNode()
Construct a default SFNode field.


SFNode

public SFNode(BaseNode node)
Construct an SFNode field.

Parameters:
node - VRML Node to create SFNode with
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Create a shallow copy of the SFNode; the underlying BaseNode is not copied.

Overrides:
clone in class Field
Returns:
a shallow copy of the SFNode.
Throws:
java.lang.CloneNotSupportedException

getValue

public BaseNode getValue()
Get the VRML node stored in this SFNode.

Returns:
VRML node object

setValue

public void setValue(BaseNode node)
Set the VRML node stored in this SFNode.

Parameters:
node - VRML node object

setValue

public void setValue(ConstSFNode node)
Set the VRML node stored in this SFNode.

Parameters:
node - Existing ConstSFNode

setValue

public void setValue(SFNode node)
Set the VRML node stored in this SFNode.

Parameters:
node - Existing SFNode