object Interpolator
Wraps a Interpolator
.
Really no point wrapping the JavaFX Interpolator
class, so this just exposes the statics.
- Source
- Interpolator.scala
- Alphabetic
- By Inheritance
- Interpolator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 Discrete: Interpolator
Built-in
Interpolator
that provides discrete time interpolation. - def EaseBoth: Interpolator
Built-in
Interpolator
instance that provides ease in/out behavior. - def EaseIn: Interpolator
Built-in
Interpolator
instance that provides ease in behavior. - def EaseOut: Interpolator
Built-in
Interpolator
instance that provides ease out behavior. - def Linear: Interpolator
Built-in
Interpolator
that provides linear time interpolation. - def Spline(x1: Double, y1: Double, x2: Double, y2: Double): Interpolator
Creates an
Interpolator
, whichcurve()
is shaped using the spline control points defined by(x1, y1)
and(x2, y2)
.Creates an
Interpolator
, whichcurve()
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
- 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
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def DISCRETE: Interpolator
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Discrete; DISCRETE will be removed in a future release
- def EASE_BOTH: Interpolator
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use EaseBoth; EASE_BOTH will be removed in a future release
- def EASE_IN: Interpolator
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use EaseIn; EASE_IN will be removed in a future release
- def EASE_OUT: Interpolator
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use EaseOut; EASE_OUT will be removed in a future release
- def LINEAR: Interpolator
- Annotations
- @deprecated
- Deprecated
(Since version 8.0.60-R10) Use Linear; LINEAR will be removed in a future release
- 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
- 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
- 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
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.