Companion Object for scalafx.collections.ObservableFloatArray.
Companion Object for scalafx.collections.ObservableFloatArray.
- Companion
- class
Value members
Concrete methods
Inherited methods
Create new ObservableArray
from an existing array.
Create new ObservableArray
from an existing array.
- Value Params
- a
Array to be converted..
- Returns
New
ObservableArray
storinga
.- Inherited from
- ObservableArrayCompanionBase
Return an empty ObservableArray
Return an empty ObservableArray
- Returns
New empty
ObservableArray
- Inherited from
- ObservableArrayCompanionBase
Returns an observable array containing the results of some element computation.
Returns an observable array containing the results of some element computation.
Note that elem
is computed n
times in total; it is not simply calculated once and reused.
- Value Params
- elem
Computation to be calculated for each element.
- n
Size of the new array. If this value is less than 1, an empty array is returned (matching the behavior of Scala's Array[T].fill function).
- Returns
Observable array of size
n
, with each element containing the result of computationelem
.- Inherited from
- ObservableArrayCompanionBase
Return an array returning repeated applications of a function to a start value.
Return an array returning repeated applications of a function to a start value.
- Value Params
- f
Function to be repeatedly applied to previous element's value.
- n
Size of the new array. If this value is less than 1, an empty array is returned (matching the behavior of Scala's Array[T].iterate function).
- start
Start value of the array.
- Returns
Array containing elements
start, f(start), f(f(start)), ...
.- Inherited from
- ObservableArrayCompanionBase
Create an observable array with given dimension.
Create an observable array with given dimension.
- Value Params
- n
Size of the new array. This value cannot be negative.
- Returns
An observable array with the specified dimension and zeroed elements.
- Throws
- NegativeArraySizeException
if
n
is negative.
- Inherited from
- ObservableArrayCompanionBase
Returns an array containing the results of some element computation that takes the element index as an argument.
Returns an array containing the results of some element computation that takes the element index as an argument.
- Value Params
- f
Function to be used to initialize element whose index is passed as an argument.
- n
Size of the new array. If this value is less than 1, an empty array is returned (matching the behavior of Scala's Array[T].tabulate function).
- Returns
Observable array of size
n
, with each element initialized byf
.- Inherited from
- ObservableArrayCompanionBase