vrml.field
Class MFInt32

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

public class MFInt32
extends MField


Constructor Summary
MFInt32()
          Default constructor
MFInt32(int[] values)
          Construct an MFInt32 field.
MFInt32(int size, int[] values)
          Construct an MFInt32 field.
 
Method Summary
 void addValue(ConstSFInt32 i)
          Add a new element at the end of the list.
 void addValue(int i)
          Add a new element at the end of the list.
 void addValue(SFInt32 i)
          Add a new element at the end of the list.
 void clear()
          Removes all fields from the MField.
 void delete(int index)
          Deletes a field from the MField.
 int get1Value(int index)
          Retrieve a particular element from an MFInt32 field.
 int getSize()
          Number of elements contained in the MField.
 void getValue(int[] values)
          Retrieves the complete list of integers making up an MFInt32 field.
 void insertValue(int index, ConstSFInt32 i)
          Insert a new element at the specified position.
 void insertValue(int index, int i)
          Insert a new element at the specified position.
 void insertValue(int index, SFInt32 i)
          Insert a new element at the specified position.
 void set1Value(int index, ConstSFInt32 i)
          Set a specified element in the field.
 void set1Value(int index, int i)
          Set a specified element in the field.
 void set1Value(int index, SFInt32 i)
          Set a specified element in the field.
 void setValue(ConstMFInt32 value)
          Set the value of the field.
 void setValue(int[] values)
          Set the value of the field.
 void setValue(int size, int[] values)
          Set the value of the field.
 void setValue(MFInt32 value)
          Set the value of the field.
 
Methods inherited from class vrml.Field
clone, dispose, finalize, getPeer, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MFInt32

public MFInt32()
Default constructor


MFInt32

public MFInt32(int size,
               int[] values)
Construct an MFInt32 field.

Parameters:
size - Number of integers to initialize object with.
values - List of integers to initialize object with.

MFInt32

public MFInt32(int[] values)
Construct an MFInt32 field.

Parameters:
values - List of integers to initialize object with.
Method Detail

getSize

public int getSize()
Description copied from class: MField
Number of elements contained in the MField.

Specified by:
getSize in class MField
Returns:
Number of elements.

clear

public void clear()
Description copied from class: MField
Removes all fields from the MField.

Specified by:
clear in class MField

delete

public void delete(int index)
Description copied from class: MField
Deletes a field from the MField.

Specified by:
delete in class MField
Parameters:
index - Index of field to delete.

getValue

public void getValue(int[] values)
Retrieves the complete list of integers making up an MFInt32 field.

Parameters:
values - Array to put resulting list of integers in.

get1Value

public int get1Value(int index)
Retrieve a particular element from an MFInt32 field.

Parameters:
index - Position of desired element.
Returns:
Value at specified position.

setValue

public void setValue(int[] values)
Set the value of the field.

Parameters:
values - New value for field.

setValue

public void setValue(int size,
                     int[] values)
Set the value of the field.

Parameters:
size - Size of new value for field.
values - New value for field.

setValue

public void setValue(MFInt32 value)
Set the value of the field.

Parameters:
value - New value for field.

setValue

public void setValue(ConstMFInt32 value)
Set the value of the field.

Parameters:
value - New value for field.

set1Value

public void set1Value(int index,
                      int i)
Set a specified element in the field.

Parameters:
index - Position of element to update.
i - New value for element.

set1Value

public void set1Value(int index,
                      ConstSFInt32 i)
Set a specified element in the field.

Parameters:
index - Position of element to update.
i - New value for element.

set1Value

public void set1Value(int index,
                      SFInt32 i)
Set a specified element in the field.

Parameters:
index - Position of element to update.
i - New value for element.

addValue

public void addValue(int i)
Add a new element at the end of the list.

Parameters:
i - Element to add.

addValue

public void addValue(ConstSFInt32 i)
Add a new element at the end of the list.

Parameters:
i - Element to add.

addValue

public void addValue(SFInt32 i)
Add a new element at the end of the list.

Parameters:
i - Element to add.

insertValue

public void insertValue(int index,
                        int i)
Insert a new element at the specified position.

Parameters:
index - Position to insert new element at.
i - Value to insert.

insertValue

public void insertValue(int index,
                        ConstSFInt32 i)
Insert a new element at the specified position.

Parameters:
index - Position to insert new element at.
i - Value to insert.

insertValue

public void insertValue(int index,
                        SFInt32 i)
Insert a new element at the specified position.

Parameters:
index - Position to insert new element at.
i - Value to insert.