|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MFBool
Interface representing a MFBool field.
| Method Summary | |
|---|---|
void |
append(boolean value)
Places a new value at the end of the existing value, increasing the field length accordingly. |
void |
clear()
Removes all values in the field and changes the field size to zero. |
boolean |
get1Value(int index)
Get a particular boolean value in this field. |
void |
getValue(boolean[] vals)
Write the value of the field out to the given array. |
void |
insertValue(int index,
boolean value)
Inserts a value into an existing index of the field. |
void |
removeValue(int index)
Removes one value from the field. |
void |
set1Value(int index,
boolean value)
Set the value of an individual item in the eventIn's value. |
void |
setValue(int size,
boolean[] value)
Set the value of the field to the new array of boolean values. |
| Methods inherited from interface org.web3d.x3d.sai.MField |
|---|
getSize |
| Methods inherited from interface org.web3d.x3d.sai.X3DField |
|---|
addX3DEventListener, getDefinition, getUserData, isReadable, isWritable, removeX3DEventListener, setUserData |
| Method Detail |
|---|
void append(boolean value)
value - The value to appendvoid clear()
void getValue(boolean[] vals)
vals - The array to be filled in
java.lang.ArrayIndexOutOfBoundsException - The provided array was too smallboolean get1Value(int index)
If the index is out of the bounds of the current array of data values an ArrayIndexOutOfBoundsException will be generated.
index - The position to get the time value
java.lang.ArrayIndexOutOfBoundsException - The index was outside of the bounds of
the current array.
void insertValue(int index,
boolean value)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position at which to insertvalue - The new element to insert
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current field
size.
void removeValue(int index)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position of the value to remove.
java.lang.ArrayIndexOutOfBoundsException - The index was outside the current field
size.
void setValue(int size,
boolean[] value)
size - The number of items to copy from the arrayvalue - The array of values to be used.
void set1Value(int index,
boolean value)
throws java.lang.ArrayIndexOutOfBoundsException
index - The position to set the boolean valuevalue - The value to be set
java.lang.ArrayIndexOutOfBoundsException - A value did not contain at least
three values for the colour component
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||