class KeyFrame extends SFXDelegate[javafx.animation.KeyFrame]
- Alphabetic
- By Inheritance
- KeyFrame
- SFXDelegate
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new KeyFrame(delegate: javafx.animation.KeyFrame)
Creates a new ScalaFX
KeyFrame
from a JavaFXKeyFrame
.Creates a new ScalaFX
KeyFrame
from a JavaFXKeyFrame
.- delegate
JavaFX
KeyFrame
to be delegated.
Value Members
- val delegate: javafx.animation.KeyFrame
JavaFX object to be wrapped.
JavaFX object to be wrapped.
- Definition Classes
- KeyFrame → SFXDelegate
- def equals(ref: Any): Boolean
Verifies if a object is equals to this delegate.
Verifies if a object is equals to this delegate.
- ref
Object to be compared.
- returns
if the other object is equals to this delegate or not.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def hashCode(): Int
- returns
The delegate hashcode
- Definition Classes
- SFXDelegate → AnyRef → Any
- def name: String
Returns the name of this
KeyFrame
. - def onFinished: EventHandler[ActionEvent]
Returns the onFinished event handler of this
KeyFrame
. - def time: Duration
Returns the time offset of this
KeyFrame
. - def toString(): String
- returns
Returns the original delegate's
toString()
adding a[SFX]
prefix.
- Definition Classes
- SFXDelegate → AnyRef → Any
- def values: Set[javafx.animation.KeyValue]
Returns an immutable Set of
KeyValue
instances.
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
JFXApp3
. 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.