Xj3D 2.0 VRML/X3D Code API

vrml.eai.field
Class EventInMFInt32

java.lang.Object
  extended by vrml.eai.field.BaseField
      extended by vrml.eai.field.EventIn
          extended by vrml.eai.field.EventInMFInt32

public abstract class EventInMFInt32
extends EventIn

VRML eventIn class for MFInt32.

Version:
1.0 30 April 1998

Field Summary
 
Fields inherited from class vrml.eai.field.BaseField
fieldType, MFColor, MFFloat, MFInt32, MFNode, MFRotation, MFString, MFTime, MFVec2f, MFVec3f, SFBool, SFColor, SFFloat, SFImage, SFInt32, SFNode, SFRotation, SFString, SFTime, SFVec2f, SFVec3f, UNSET_FIELD
 
Constructor Summary
protected EventInMFInt32()
          Construct an instance of this class.
 
Method Summary
abstract  void set1Value(int index, int value)
          Set a particular value in the given eventIn array.
abstract  void setValue(int[] value)
          Set the value of the array of integers.
 
Methods inherited from class vrml.eai.field.EventIn
getUserData, setUserData
 
Methods inherited from class vrml.eai.field.BaseField
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventInMFInt32

protected EventInMFInt32()
Construct an instance of this class. The superclass is called with the type set to MFInt32.

Method Detail

setValue

public abstract void setValue(int[] value)
Set the value of the array of integers. If the value array is length zero this is equivalent of clearing the field.

Parameters:
value - The array of values to be set.

set1Value

public abstract void set1Value(int index,
                               int value)
                        throws java.lang.ArrayIndexOutOfBoundsException
Set a particular value in the given eventIn array. To the VRML world this will generate a full MFInt32 event with the nominated index value changed.

If the index is out of the bounds of the current array of data values an ArrayIndexOutOfBoundsException will be generated.

Parameters:
index - The position to set the colour value
value - The value to be set.
Throws:
java.lang.ArrayIndexOutOfBoundsException - A value did not contain at least three values for the colour component

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium