ObservableFloatArray

scalafx.collections.ObservableFloatArray
See theObservableFloatArray companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

override def apply(v: Float*): ObservableFloatArray

Create new $OA from a vararg list.

Create new $OA from a vararg list.

Attributes

Definition Classes
ObservableArrayCompanionBase

Inherited methods

def apply(a: Array[Float]): T

Create new ObservableArray from an existing array.

Create new ObservableArray from an existing array.

Value parameters

a

Array to be converted..

Attributes

Returns

New ObservableArray storing a.

Inherited from:
ObservableArrayCompanionBase (hidden)
def empty(): T

Return an empty ObservableArray

Return an empty ObservableArray

Attributes

Returns

New empty ObservableArray

Inherited from:
ObservableArrayCompanionBase (hidden)
def fill(n: Int)(elem: => Float): T

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 parameters

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).

Attributes

Returns

Observable array of size n, with each element containing the result of computation elem.

Inherited from:
ObservableArrayCompanionBase (hidden)
def iterate(start: Float, n: Int)(f: Float => Float): T

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 parameters

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.

Attributes

Returns

Array containing elements start, f(start), f(f(start)), ....

Inherited from:
ObservableArrayCompanionBase (hidden)
def ofDim(n: Int): T

Create an observable array with given dimension.

Create an observable array with given dimension.

Value parameters

n

Size of the new array. This value cannot be negative.

Attributes

Returns

An observable array with the specified dimension and zeroed elements.

Throws
NegativeArraySizeException

if n is negative.

Inherited from:
ObservableArrayCompanionBase (hidden)
def tabulate(n: Int)(f: Int => Float): T

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 parameters

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).

Attributes

Returns

Observable array of size n, with each element initialized by f.

Inherited from:
ObservableArrayCompanionBase (hidden)

Implicits

Inherited implicits

Extract a JavaFX ObservableArray from a ScalaFX ObservableArray.

Extract a JavaFX ObservableArray from a ScalaFX ObservableArray.

Value parameters

oa

ScalaFX ObservableArray.

Attributes

Returns

JavaFX ObservableArray inside parameter.

Inherited from:
ObservableArrayCompanionBase (hidden)