Package vrml.eai.field
Class EventInSFVec2f
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventIn
vrml.eai.field.EventInSFVec2f
- Direct Known Subclasses:
EventInSFVec2fWrapper
VRML eventIn class for SFVec2f.
- Version:
- 1.0 30 April 1998
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
setValue
(float[] value) Set the vector value in the given eventIn.Methods inherited from class vrml.eai.field.EventIn
getUserData, setUserData
-
Constructor Details
-
EventInSFVec2f
protected EventInSFVec2f()Construct an instance of this class. Calls the superclass constructor with the field type set to SFVec2f.
-
-
Method Details
-
setValue
public abstract void setValue(float[] value) Set the vector value in the given eventIn.The value array must contain at least two elements. If the array contains more than 2 values only the first 2 values will be used and the rest ignored.
If the array of values does not contain at least 2 elements an ArrayIndexOutOfBoundsException will be generated.
- Parameters:
value
- The array of vector components where
value[0] = X
value[1] = Y- Throws:
ArrayIndexOutOfBoundsException
- The value did not contain at least two values for the vector
-