Package vrml.eai.field
Class EventOutMField
java.lang.Object
vrml.eai.field.BaseField
vrml.eai.field.EventOut
vrml.eai.field.EventOutMField
- Direct Known Subclasses:
EventOutMFColor
,EventOutMFFloat
,EventOutMFInt32
,EventOutMFNode
,EventOutMFRotation
,EventOutMFString
,EventOutMFTime
,EventOutMFVec2f
,EventOutMFVec3f
VRML eventOut base class for MF field values.
Class provides a size method that determines the number of items available in this array of values. Normally used in conjunction with the get1Value() method of the MF field classes so that exceptions are not generated.
It is possible, although not recommended, that the size of the arrays returned by the get methods may be larger than the actual amount of data that is to be represented. Calling size() beforehand ensures that the correct number of items in the array will be read.
- Version:
- 1.0 30 April 1998
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EventOutMField
(int type) Construct an instance of this class. -
Method Summary
Methods inherited from class vrml.eai.field.EventOut
addVrmlEventListener, getUserData, removeVrmlEventListener, setUserData
-
Constructor Details
-
EventOutMField
protected EventOutMField(int type) Construct an instance of this class. Calls the superclass constructor with the type set to MFColor.- Parameters:
type
- The type of this eventOut
-
-
Method Details
-
size
public abstract int size()Get the size of the underlying data array.- Returns:
- The size of the array
-