Xj3D 2.0 VRML/X3D Code API

vrml.eai.field
Class EventInMFFloat

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

public abstract class EventInMFFloat
extends EventIn

VRML eventIn class for MFFloat.

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 EventInMFFloat()
          Construct an instance of this class.
 
Method Summary
abstract  void set1Value(int index, float value)
          Set the value of an individual item in the eventIn's value.
abstract  void setValue(float[] value)
          Set the value of the eventIn to the new array of float values.
 
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

EventInMFFloat

protected EventInMFFloat()
Construct an instance of this class. Calls the superclass constructor with the type MFFloat

Method Detail

setValue

public abstract void setValue(float[] value)
Set the value of the eventIn to the new array of float values. This array is copied internally so that the parameter array can be reused without effecting the valid values of the eventIn.

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

set1Value

public abstract void set1Value(int index,
                               float value)
                        throws java.lang.ArrayIndexOutOfBoundsException
Set the value of an individual item in the eventIn's value. This results in a new event being generated that includes all of the array items with the single element set. 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