vrml.field
Class ConstMFInt32

java.lang.Object
  extended by vrml.Field
      extended by vrml.ConstField
          extended by vrml.ConstMField
              extended by vrml.field.ConstMFInt32
All Implemented Interfaces:
java.lang.Cloneable

public class ConstMFInt32
extends ConstMField

Represents a read-only VRML MFInt32 field in Java.


Constructor Summary
ConstMFInt32(int[] values)
          Construct a read-only MFInt32 field.
ConstMFInt32(int size, int[] values)
          Construct a read-only MFInt32 field.
 
Method Summary
 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.
 
Methods inherited from class vrml.ConstField
clone
 
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

ConstMFInt32

public ConstMFInt32(int size,
                    int[] values)
Construct a read-only MFInt32 field.

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

ConstMFInt32

public ConstMFInt32(int[] values)
Construct a read-only MFInt32 field.

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

getSize

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

Specified by:
getSize in class ConstMField
Returns:
the number of elements.

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.