object ObservableFloatArray extends ObservableArrayCompanionBase[Float, ObservableFloatArray, javafx.collections.ObservableFloatArray]
Companion Object for scalafx.collections.ObservableFloatArray.
- Alphabetic
- By Inheritance
- ObservableFloatArray
- ObservableArrayCompanionBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(v: Float*): ObservableFloatArray
Create new
ObservableArray
from a vararg list.Create new
ObservableArray
from a vararg list.- v
Value varargs.
- returns
New
ObservableArray
storingv
- Definition Classes
- ObservableFloatArray → ObservableArrayCompanionBase
-
def
apply(a: Array[Float]): ObservableFloatArray
Create new
ObservableArray
from an existing array.Create new
ObservableArray
from an existing array.- a
Array to be converted..
- returns
New
ObservableArray
storinga
.
- Definition Classes
- ObservableArrayCompanionBase
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
empty(): ObservableFloatArray
Return an empty
ObservableArray
Return an empty
ObservableArray
- returns
New empty
ObservableArray
- Definition Classes
- ObservableArrayCompanionBase
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
fill(n: Int)(elem: ⇒ Float): ObservableFloatArray
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 computedn
times in total; it is not simply calculated once and reused.- 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).
- elem
Computation to be calculated for each element.
- returns
Observable array of size
n
, with each element containing the result of computationelem
.
- Definition Classes
- ObservableArrayCompanionBase
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
iterate(start: Float, n: Int)(f: (Float) ⇒ Float): ObservableFloatArray
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.
- start
Start value of the array.
- 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).
- f
Function to be repeatedly applied to previous element's value.
- returns
Array containing elements
start, f(start), f(f(start)), ...
.
- Definition Classes
- ObservableArrayCompanionBase
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
ofDim(n: Int): ObservableFloatArray
Create an observable array with given dimension.
Create an observable array with given dimension.
- n
Size of the new array. This value cannot be negative.
- returns
An observable array with the specified dimension and zeroed elements.
- Definition Classes
- ObservableArrayCompanionBase
- Exceptions thrown
NegativeArraySizeException
ifn
is negative.
-
implicit
def
sfxObservableArray2jfxObservableArray(oa: ObservableFloatArray): javafx.collections.ObservableFloatArray
Extract a JavaFX
ObservableArray
from a ScalaFXObservableArray
.Extract a JavaFX
ObservableArray
from a ScalaFXObservableArray
.- oa
ScalaFX
ObservableArray
.- returns
JavaFX
ObservableArray
inside parameter.
- Definition Classes
- ObservableArrayCompanionBase
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tabulate(n: Int)(f: (Int) ⇒ Float): ObservableFloatArray
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.
- 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).
- f
Function to be used to initialize element whose index is passed as an argument.
- returns
Observable array of size
n
, with each element initialized byf
.
- Definition Classes
- ObservableArrayCompanionBase
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX 2.0 or JavaFX 8 are supported.
Package Structure
ScalaFX package structure corresponds to JavaFX package structure, for instance
scalafx.animation
corresponds tojavafx.animation
.Example Usage
A basic ScalaFX application is created creating an object that is an instance of
JFXApp
. Following Java FX theatre metaphor, it contains astage
that contains ascene
. Astage
roughly corresponds to a window in a typical UI environment. Thescene
holds UI content presented to the user. In the example below, the content is a pane with a singlelabel
component.