Packages

  • package root

    ScalaFX is a UI DSL written within the Scala Language that sits on top of JavaFX 2.x and and JavaFX 8.

    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 to javafx.animation.

    Example Usage

    A basic ScalaFX application is created creating an object that is an instance of JFXApp3. Following Java FX theatre metaphor, it contains a stage that contains a scene. A stage roughly corresponds to a window in a typical UI environment. The scene holds UI content presented to the user. In the example below, the content is a pane with a single label component.

    package hello
    
    import scalafx.application.JFXApp3
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp3 {
    
      override def start(): Unit = {
        stage = new JFXApp3.PrimaryStage {
          title = "Hello"
          scene = new Scene {
            root = new BorderPane {
              padding = Insets(75)
              center = new Label("Hello World")
            }
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package collections

    Wraps javafx.collections package, adding Scala's collections features to original JavaFX collections.

    Wraps javafx.collections package, adding Scala's collections features to original JavaFX collections.

    Definition Classes
    scalafx
  • package transformation
    Definition Classes
    collections
  • CollectionIncludes
  • ObservableArray
  • ObservableBuffer
  • ObservableBufferBase
  • ObservableFloatArray
  • ObservableHashMap
  • ObservableHashSet
  • ObservableIntegerArray
  • ObservableMap
  • ObservableSet

object ObservableIntegerArray extends ObservableArrayCompanionBase[Int, ObservableIntegerArray, javafx.collections.ObservableIntegerArray]

Source
ObservableIntegerArray.scala
Linear Supertypes
ObservableArrayCompanionBase[Int, ObservableIntegerArray, javafx.collections.ObservableIntegerArray], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObservableIntegerArray
  2. ObservableArrayCompanionBase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(v: Int*): ObservableIntegerArray

    Create new ObservableArray from a vararg list.

    Create new ObservableArray from a vararg list.

    v

    Value varargs.

    returns

    New ObservableArray storing v

    Definition Classes
    ObservableIntegerArray → ObservableArrayCompanionBase
  5. def apply(a: Array[Int]): ObservableIntegerArray

    Create new ObservableArray from an existing array.

    Create new ObservableArray from an existing array.

    a

    Array to be converted..

    returns

    New ObservableArray storing a.

    Definition Classes
    ObservableArrayCompanionBase
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def empty(): ObservableIntegerArray

    Return an empty ObservableArray

    Return an empty ObservableArray

    returns

    New empty ObservableArray

    Definition Classes
    ObservableArrayCompanionBase
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def fill(n: Int)(elem: => Int): ObservableIntegerArray

    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.

    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 computation elem.

    Definition Classes
    ObservableArrayCompanionBase
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def iterate(start: Int, n: Int)(f: (Int) => Int): ObservableIntegerArray

    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
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def ofDim(n: Int): ObservableIntegerArray

    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 if n is negative.

  20. def range(start: Int, end: Int, step: Int = 1): ObservableIntegerArray

    Returns an array containing equally spaced values in some integer interval.

    Returns an array containing equally spaced values in some integer interval.

    start

    Start value of the array.

    end

    End value of the array, exclusive (that is, first value not included in array). If start exceeds end (>= end if step is positive or <= end if step is negative), then an empty array will result.

    step

    Increment value of the array. This value can be negative, but not zero. If omitted, this value defaults to 1.

    returns

    Observable array with values: start, start + step, start + 2 * step, ..., up to, but not including, end.

    Exceptions thrown

    IllegalArgumentException if step is 0.

  21. implicit def sfxObservableArray2jfxObservableArray(oa: ObservableIntegerArray): javafx.collections.ObservableIntegerArray

    Extract a JavaFX ObservableArray from a ScalaFX ObservableArray.

    Extract a JavaFX ObservableArray from a ScalaFX ObservableArray.

    oa

    ScalaFX ObservableArray.

    returns

    JavaFX ObservableArray inside parameter.

    Definition Classes
    ObservableArrayCompanionBase
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def tabulate(n: Int)(f: (Int) => Int): ObservableIntegerArray

    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 by f.

    Definition Classes
    ObservableArrayCompanionBase
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from ObservableArrayCompanionBase[Int, ObservableIntegerArray, javafx.collections.ObservableIntegerArray]

Inherited from AnyRef

Inherited from Any

Ungrouped