package animation
- Alphabetic
- By Inheritance
- animation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
Animation extends SFXDelegate[javafx.animation.Animation]
Wraps JavaFX's
Animation
. -
trait
AnimationIncludes extends AnyRef
Contains implicit methods to convert classes from
javafx.animation
classes to their respective ScalaFX versions. -
trait
AnimationStatics extends AnyRef
Defines Constants to be used for all scalafx.animation.Animations object companions.
-
abstract
class
AnimationTimer extends SFXDelegate[javafx.animation.AnimationTimer]
Wraps a
AnimationTimer
. -
class
FadeTransition extends Transition with SFXDelegate[javafx.animation.FadeTransition]
Wraps a
FadeTransition
. -
class
FillTransition extends Transition with SFXDelegate[javafx.animation.FillTransition]
Wraps a
FillTransition
. -
class
KeyFrame extends SFXDelegate[javafx.animation.KeyFrame]
Wraps a
KeyFrame
. -
class
KeyValue[T, J] extends SFXDelegate[javafx.animation.KeyValue]
Wraps a
KeyValue
.Wraps a
KeyValue
. Defines a key value to be interpolated for a particular interval along the animation. A KeyFrame, which defines a specific point on a timeline, can hold multipleKeyValue
s.KeyValue
is an immutable class.- T
Indicates Scala type that will be returned for this property.
- J
Indicates Java type to be wrapped by T. Eventually T and J could be the same.
-
class
ParallelTransition extends Transition with SFXDelegate[javafx.animation.ParallelTransition]
Wraps a
ParallelTransition
. -
class
PathTransition extends Transition with SFXDelegate[javafx.animation.PathTransition]
Wraps a PathTransition.
-
class
PauseTransition extends Transition with SFXDelegate[javafx.animation.PauseTransition]
Wraps a
PauseTransition
. -
class
RotateTransition extends Transition with SFXDelegate[javafx.animation.RotateTransition]
Wraps a
RotateTransition
. -
class
ScaleTransition extends Transition with SFXDelegate[javafx.animation.ScaleTransition]
Wraps a
ScaleTransition
. -
class
SequentialTransition extends Transition with SFXDelegate[javafx.animation.SequentialTransition]
Wraps a SequentialTransition.
-
class
StrokeTransition extends Transition with SFXDelegate[javafx.animation.StrokeTransition]
Wraps a StrokeTransition.
-
class
Timeline extends Animation with SFXDelegate[javafx.animation.Timeline]
Wraps a Timeline.
-
abstract
class
Transition extends Animation with SFXDelegate[javafx.animation.Transition]
Wraps a
Transition
. -
class
TranslateTransition extends Transition with SFXDelegate[javafx.animation.TranslateTransition]
Wraps a TranslateTransition.
-
class
Tweenable[T, J] extends AnyRef
Class factory for new scalafx.animation.KeyValues.
Class factory for new scalafx.animation.KeyValues.
- T
Indicates Scala type that will be returned for this property.
- J
Indicates Java type to be wrapped by T. Eventually T and J could be the same.
Value Members
-
object
Animation extends AnimationStatics
Companion Object for scalafx.animation.Animation.
- object AnimationIncludes extends AnimationIncludes
-
object
AnimationTimer
Companion Object for scalafx.animation.AnimationTimer.
-
object
FadeTransition extends AnimationStatics
Companion Object for scalafx.animation.FadeTransition.
-
object
FillTransition extends AnimationStatics
Companion Object for scalafx.animation.FadeTransition.
-
object
Interpolator
Wraps a
Interpolator
.Wraps a
Interpolator
. Really no point wrapping the JavaFXInterpolator
class, so this just exposes the statics. -
object
KeyFrame
Companion Object for scalafx.animation.KeyFrame.
-
object
KeyValue
Companion Object for scalafx.animation.KeyValue.
-
object
ParallelTransition extends AnimationStatics
Companion Object for scalafx.animation.ParallelTransition.
-
object
PathTransition extends AnimationStatics
Companion Object for scalafx.animation.PathTransition.
-
object
PauseTransition extends AnimationStatics
Companion Object for scalafx.animation.PauseTransition.
-
object
RotateTransition extends AnimationStatics
Companion Object for scalafx.animation.RotateTransition.
-
object
ScaleTransition extends AnimationStatics
Companion Object for scalafx.animation.ScaleTransition.
-
object
SequentialTransition extends AnimationStatics
Companion Object for scalafx.animation.SequentialTransition.
-
object
StrokeTransition extends AnimationStatics
Companion Object for scalafx.animation.StrokeTransition.
-
object
Timeline extends AnimationStatics
Companion Object for scalafx.animation.Timeline.
-
object
Transition extends AnimationStatics
Companion Object for scalafx.animation.Transition.
-
object
TranslateTransition extends AnimationStatics
Companion Object for scalafx.animation.TranslateTransition.
-
object
Tweenable
Companion Object for scalafx.animation.Tweenable.
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.