Interface MFTime
- All Known Implementing Classes:
- MFTime
MFTime is an array of SFTime values. Array values are optionally separated by commas in XML syntax.
 
 
 
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidappend(double newValue) Places a new value at the end of the existing value array, increasing the field length accordingly.voidappend(long newValue) Places a new value at the end of the existing value array, increasing the field length accordingly.longget1JavaValue(int index) Get a single value from the existing field array.doubleget1Value(int index) Get a single value from the existing field array.voidgetValue(double[] valueDestination) Write out the current value of this field into the external valueDestination array.voidinsertValue(int index, double newValue) Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.voidinsertValue(int index, long newValue) Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.voidset1Value(int index, double newValue) Replace a single value at the appropriate location in the existing value array.voidset1Value(int index, long newValue) Replace a single value at the appropriate location in the existing value array.voidsetValue(int size, double[] newValue) Assign an array subset to this field.voidsetValue(int size, long[] newValue) Assign an array subset to this field.voidsetValue(long[] newValue) Assign a new value to this field.
- 
Method Details- 
getValuevoid getValue(double[] valueDestination) Write out the current value of this field into the external valueDestination array.- Parameters:
- valueDestination- The array to be filled in with current field values.
- Throws:
- ArrayIndexOutOfBoundsException- The provided valueDestination array was too small.
 
- 
get1Valuedouble get1Value(int index) Get a single value from the existing field array. If the index is outside the bounds of the current array of data values, an ArrayIndexOutOfBoundsException is thrown. - Parameters:
- index- is position of selected value in current array
- Returns:
- The selected value
- Throws:
- ArrayIndexOutOfBoundsException- index outside bounds of current array.
 
- 
get1JavaValuelong get1JavaValue(int index) Get a single value from the existing field array. If the index is outside the bounds of the current array of data values, an ArrayIndexOutOfBoundsException is thrown. - Parameters:
- index- is position of selected value in current array
- Returns:
- The selected value
- Throws:
- ArrayIndexOutOfBoundsException- index outside bounds of current array.
 
- 
setValuevoid setValue(int size, double[] newValue) Assign an array subset to this field.- Parameters:
- size- indicates size of result to copy (i.e. the number of typed singleton values) from beginning of newValue array
- newValue- The replacement value array to (potentially) slice and then assign.
 
- 
setValuevoid setValue(int size, long[] newValue) Assign an array subset to this field.- Parameters:
- size- indicates size of result to copy (i.e. the number of typed singleton values) from beginning of newValue array.
- newValue- The replacement value array to (potentially) slice and then assign.
 
- 
setValuevoid setValue(long[] newValue) Assign a new value to this field.- Parameters:
- newValue- is replacement value array to assign
 
- 
set1Valuevoid set1Value(int index, double newValue) Replace a single value at the appropriate location in the existing value array. Size of the current underlying value array does not change.- Parameters:
- index- is position of selected value in current array
- newValue- provides new value to apply
 
- 
set1Valuevoid set1Value(int index, long newValue) Replace a single value at the appropriate location in the existing value array. Size of the current underlying value array does not change.- Parameters:
- index- is position of selected value in current array
- newValue- provides new value to apply
 
- 
appendvoid append(double newValue) Places a new value at the end of the existing value array, increasing the field length accordingly.- Parameters:
- newValue- The newValue to append
 
- 
appendvoid append(long newValue) Places a new value at the end of the existing value array, increasing the field length accordingly.- Parameters:
- newValue- The newValue to append
 
- 
insertValuevoid insertValue(int index, long newValue) Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.- Parameters:
- index- The position for the inserted value in the current array
- newValue- The newValue to insert
 
- 
insertValuevoid insertValue(int index, double newValue) Insert a new value prior to the index location in the existing value array, increasing the field length accordingly.- Parameters:
- index- The position for the inserted value in the current array
- newValue- The newValue to insert
 
 
-