trait AnimationIncludes extends AnyRef
Contains implicit methods to convert classes from
javafx.animation
classes to their
respective ScalaFX versions.
- Source
- AnimationIncludes.scala
- Alphabetic
- By Inheritance
- AnimationIncludes
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
at(time: Duration)(v: ⇒ Set[KeyValue[_, _ <: AnyRef]]): KeyFrame
- time
Duration time
- v
Function which returns a scalafx.animation.KeyValue scala.collection.immutable.Set
- returns
new KeyFrame
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
jfxAnimation2sfx(v: javafx.animation.Animation): Animation
Generates a ScalaFX
Animation
from its JavaFX counterparty. -
implicit
def
jfxAnimationStatus2sfx(v: Status): Status
Generates a ScalaFX
Animation.Status
from its JavaFX counterparty. -
implicit
def
jfxAnimationTimer2sfx(at: javafx.animation.AnimationTimer): AnimationTimer
Generates a ScalaFX
AnimationTimer
from its JavaFX counterparty. -
implicit
def
jfxFadeTransition2sfx(v: javafx.animation.FadeTransition): FadeTransition
Generates a ScalaFX
FadeTransition
from its JavaFX counterparty. -
implicit
def
jfxFillTransition2sfx(v: javafx.animation.FillTransition): FillTransition
Generates a ScalaFX
FillTransition
from its JavaFX counterparty. -
implicit
def
jfxInterpolatable2sfxFunction2[T](i: Interpolatable[T]): (T, Double) ⇒ T
Converts a
Interpolatable
to a scala.Function2.Converts a
Interpolatable
to a scala.Function2.- T
type of function
- i
Interpolatable
instance- returns
A scala.Function2 that receives a instance of T and a Double (between 0.0 and 1.0) and returns a T Instance according
interpolate
method
-
implicit
def
jfxKeyFrame2sfx(v: javafx.animation.KeyFrame): KeyFrame
Generates a ScalaFX
KeyFrame
from its JavaFX counterparty. -
implicit
def
jfxKeyValue2sfx(v: javafx.animation.KeyValue): KeyValue[Nothing, Nothing]
Generates a ScalaFX
KeyValue
from its JavaFX counterparty. -
implicit
def
jfxParallelTransition2sfx(v: javafx.animation.ParallelTransition): ParallelTransition
Generates a ScalaFX
ParallelTransition
from its JavaFX counterparty. -
implicit
def
jfxPathTransition2sfx(v: javafx.animation.PathTransition): PathTransition
Generates a ScalaFX
PathTransition
from its JavaFX counterparty. -
implicit
def
jfxPathTransitionOrientationType2sfx(v: OrientationType): OrientationType
Generates a ScalaFX
PathTransition.OrientationType
from its JavaFX counterparty. -
implicit
def
jfxPauseTransition2sfx(v: javafx.animation.PauseTransition): PauseTransition
Generates a ScalaFX
PauseTransition
from its JavaFX counterparty. -
implicit
def
jfxRotateTransition2sfx(v: javafx.animation.RotateTransition): RotateTransition
Generates a ScalaFX
RotateTransition
from its JavaFX counterparty. -
implicit
def
jfxScaleTransition2sfx(v: javafx.animation.ScaleTransition): ScaleTransition
Generates a ScalaFX
ScaleTransition
from its JavaFX counterparty. -
implicit
def
jfxSequentialTransition2sfx(v: javafx.animation.SequentialTransition): SequentialTransition
Generates a ScalaFX
SequentialTransition
from its JavaFX counterparty. -
implicit
def
jfxStrokeTransition2sfx(v: javafx.animation.StrokeTransition): StrokeTransition
Generates a ScalaFX
StrokeTransition
from its JavaFX counterparty. -
implicit
def
jfxTimeline2sfx(v: javafx.animation.Timeline): Timeline
Generates a ScalaFX
Timeline
from its JavaFX counterparty. -
implicit
def
jfxTransition2sfx(v: javafx.animation.Transition): Transition
Generates a ScalaFX
Transition
from its JavaFX counterparty. -
implicit
def
jfxTranslateTransition2sfx(v: javafx.animation.TranslateTransition): TranslateTransition
Generates a ScalaFX
TranslateTransition
from its JavaFX counterparty. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
def
sfxFunction2jfxInterpolatable[T](f: (T, Double) ⇒ T): Interpolatable[T]
Converts a scala.Function2 to a
Interpolatable
Implementation.Converts a scala.Function2 to a
Interpolatable
Implementation.- T
Type of Function
- f
Function that receives a instance of T and a Double (between 0.0 and 1.0) and returns a T Instance.
- returns
A new instance of
Interpolatable
whichinterpolate
method callsf
function.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
implicit
def
tweenableSet2KeyValueSet(ts: Set[Tweenable[_, _ <: AnyRef]]): Set[KeyValue[_, _ <: AnyRef]]
Converts a
Set
of scalafx.animation.Tweenables in aSet
of scalafx.animation.KeyValues.Converts a
Set
of scalafx.animation.Tweenables in aSet
of scalafx.animation.KeyValues.- ts
Set
of scalafx.animation.Tweenables- returns
Set
of scalafx.animation.KeyValues.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
implicit
def
wrapKeyFrameInSeq[T <: KeyFrame](kf: T): Seq[T]
Wraps a scalafx.animation.KeyFrame in a
Seq
.Wraps a scalafx.animation.KeyFrame in a
Seq
.- kf
KeyFrame
to be wrapped.- returns
Seq
wrapping theKeyFrame
.
-
implicit
def
wrapKeyValueInSet[T, J <: AnyRef](kv: KeyValue[T, J]): Set[KeyValue[_, _ <: AnyRef]]
Wraps a scalafx.animation.KeyValue in a
Set
.Wraps a scalafx.animation.KeyValue in a
Set
.- kv
KeyValue
to be injected.- returns
Set
wrapping theKeyValue
-
implicit
def
wrapTweenableInSet[T, J <: AnyRef](t: Tweenable[T, J]): Set[KeyValue[_, _ <: AnyRef]]
Wraps a scalafx.animation.Tweenable in a
Set
.Wraps a scalafx.animation.Tweenable in a
Set
.- t
Tweenable
to be injected.- returns
Set
wrapping theTweenable
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.