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 JFXApp. 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.JFXApp
    import scalafx.application.JFXApp.PrimaryStage
    import scalafx.geometry.Insets
    import scalafx.scene.Scene
    import scalafx.scene.control.Label
    import scalafx.scene.layout.BorderPane
    
    object HelloWorld extends JFXApp {
      stage = new PrimaryStage {
        title = "Hello"
        scene = new Scene {
          root = new BorderPane {
            padding = Insets(25)
            center = new Label("Hello World")
          }
        }
      }
    }
    Definition Classes
    root
  • package scalafx

    Base package for ScalaFX classes.

    Base package for ScalaFX classes.

    Definition Classes
    root
  • package animation

    Wraps javafx.animation package.

    Wraps javafx.animation package.

    Definition Classes
    scalafx
  • Animation
  • AnimationIncludes
  • AnimationStatics
  • AnimationTimer
  • FadeTransition
  • FillTransition
  • Interpolator
  • KeyFrame
  • KeyValue
  • ParallelTransition
  • PathTransition
  • PauseTransition
  • RotateTransition
  • ScaleTransition
  • SequentialTransition
  • StrokeTransition
  • Timeline
  • Transition
  • TranslateTransition
  • Tweenable
o

scalafx.animation

Interpolator

object Interpolator

Wraps a Interpolator. Really no point wrapping the JavaFX Interpolator class, so this just exposes the statics.

Source
Interpolator.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Interpolator
  2. AnyRef
  3. 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 Discrete: Interpolator

    Built-in Interpolator that provides discrete time interpolation.

  5. def EaseBoth: Interpolator

    Built-in Interpolator instance that provides ease in/out behavior.

  6. def EaseIn: Interpolator

    Built-in Interpolator instance that provides ease in behavior.

  7. def EaseOut: Interpolator

    Built-in Interpolator instance that provides ease out behavior.

  8. def Linear: Interpolator

    Built-in Interpolator that provides linear time interpolation.

  9. def Spline(x1: Double, y1: Double, x2: Double, y2: Double): Interpolator

    Creates an Interpolator, which curve() is shaped using the spline control points defined by (x1, y1) and (x2, y2).

    Creates an Interpolator, which curve() is shaped using the spline control points defined by (x1, y1) and (x2, y2).

    x1

    x coordinate of the first control point

    y1

    y coordinate of the first control point

    x2

    x coordinate of the second control point

    y2

    y coordinate of the second control point

    returns

    A spline interpolator

  10. def Tangent(t1: Duration, v1: Double, t2: Duration, v2: Double): Interpolator

    Create a tangent Interpolator.

    Create a tangent Interpolator.

    t1

    The delta time of the in-tangent

    v1

    The value of the in-tangent

    t2

    The delta time of the out-tangent

    v2

    The value of the out-tangent

    returns

    the new tangent interpolator

  11. def Tangent(t: Duration, v: Double): Interpolator

    Creates a tangent Interpolator, for which in-tangent and out-tangent are identical.

    Creates a tangent Interpolator, for which in-tangent and out-tangent are identical.

    t

    The delta time of the tangent

    v

    The value of the tangent

    returns

    the new Tangent interpolator

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def DISCRETE: Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use Discrete; DISCRETE will be removed in a future release

  2. def EASE_BOTH: Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use EaseBoth; EASE_BOTH will be removed in a future release

  3. def EASE_IN: Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use EaseIn; EASE_IN will be removed in a future release

  4. def EASE_OUT: Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use EaseOut; EASE_OUT will be removed in a future release

  5. def LINEAR: Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use Linear; LINEAR will be removed in a future release

  6. def SPLINE(x1: Double, y1: Double, x2: Double, y2: Double): Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use Spline; SPLINE will be removed in a future release

  7. def TANGENT(t1: Duration, v1: Double, t2: Duration, v2: Double): Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use Tangent; TANGENT will be removed in a future release

  8. def TANGENT(t: Duration, v: Double): Interpolator
    Annotations
    @deprecated
    Deprecated

    (Since version 8.0.60-R10) Use Tangent; TANGENT will be removed in a future release

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

Inherited from AnyRef

Inherited from Any

Ungrouped