|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvrml.Field
vrml.MField
vrml.field.MFNode
public class MFNode
Represents a VRML MFNode field in Java.
Constructor Summary | |
---|---|
MFNode()
Default constructor. |
|
MFNode(BaseNode[] nodes)
Construct an MFNode field. |
|
MFNode(int size,
BaseNode[] nodes)
Construct an MFNode field. |
Method Summary | |
---|---|
void |
addValue(BaseNode node)
Add a new element at the end of the list. |
void |
addValue(ConstSFNode node)
Add a new element at the end of the list. |
void |
addValue(SFNode node)
Add a new element at the end of the list. |
void |
clear()
Removes all fields from the MField. |
java.lang.Object |
clone()
Create a shallow copy of the MFNode; the underlying BaseNodes are not copied. |
void |
delete(int index)
Deletes a field from the MField. |
BaseNode |
get1Value(int index)
Retrieves a specific BaseNode from an MFNode. |
int |
getSize()
Number of elements contained in the MField. |
void |
getValue(BaseNode[] nodes)
Retrieves the value of an MFNode field. |
void |
insertValue(int index,
BaseNode node)
Insert a new element at the specified position. |
void |
insertValue(int index,
ConstSFNode node)
Insert a new element at the specified position. |
void |
insertValue(int index,
SFNode node)
Insert a new element at the specified position. |
void |
set1Value(int index,
BaseNode node)
Set a specified element in the field. |
void |
set1Value(int index,
ConstSFNode node)
Set a specified element in the field. |
void |
set1Value(int index,
SFNode node)
Set a specified element in the field. |
void |
setValue(BaseNode[] node)
Set the value of the field. |
void |
setValue(ConstMFNode nodes)
Set the value of the field. |
void |
setValue(int size,
BaseNode[] nodes)
Set the value of the field. |
void |
setValue(MFNode nodes)
Set the value of the field. |
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 |
---|
public MFNode()
public MFNode(int size, BaseNode[] nodes)
size
- Number of elements passed in.nodes
- Array of BaseNodes.public MFNode(BaseNode[] nodes)
nodes
- Array of BaseNodes.Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class Field
java.lang.CloneNotSupportedException
public int getSize()
MField
getSize
in class MField
public void clear()
MField
clear
in class MField
public void delete(int index)
MField
delete
in class MField
index
- Index of field to delete.public void getValue(BaseNode[] nodes)
nodes
- Array of BaseNodes to be returned.public BaseNode get1Value(int index)
index
- Position of desired BaseNode.
public void setValue(BaseNode[] node)
node
- New value for field.public void setValue(int size, BaseNode[] nodes)
size
- Size of new value for field.nodes
- New value for field.public void setValue(MFNode nodes)
nodes
- New value for field.public void setValue(ConstMFNode nodes)
node
- New value for field.public void set1Value(int index, BaseNode node)
index
- Position of element to update.node
- New value for element.public void set1Value(int index, ConstSFNode node)
index
- Position of element to update.node
- New value for element.public void set1Value(int index, SFNode node)
index
- Position of element to update.node
- New value for element.public void addValue(BaseNode node)
node
- Element to add.public void addValue(ConstSFNode node)
node
- Element to add.public void addValue(SFNode node)
node
- Element to add.public void insertValue(int index, BaseNode node)
index
- Position to insert new element at.node
- Value to insert.public void insertValue(int index, ConstSFNode node)
index
- Position to insert new element at.node
- Value to insert.public void insertValue(int index, SFNode node)
index
- Position to insert new element at.node
- Value to insert.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |