Animation

abstract class Animation extends SFXDelegate[Animation]

Wraps JavaFX's `Animation`.

Wraps JavaFX's `Animation`.

Companion
object
trait SFXDelegate[Animation]
class Object
trait Matchable
class Any

Value members

Concrete methods

Defines whether this Animation reverses direction on alternating cycles. Default value: false.

Defines whether this Animation reverses direction on alternating cycles. Default value: false.

def autoReverse_=(ar: Boolean): Unit

Read-only variable to indicate current direction/speed at which the Animation is being played. Default value: 0.0.

Read-only variable to indicate current direction/speed at which the Animation is being played. Default value: 0.0.

Defines the Animation's play head position. Default value: 0ms.

Defines the Animation's play head position. Default value: 0ms.

Defines the number of cycles in this Animation. Default value: 0ms

Defines the number of cycles in this Animation. Default value: 0ms

def cycleCount_=(r: Int): Unit

Read-only variable to indicate the duration of one cycle of this Animation: the time it takes to play from time 0 to the KeyFrame with the largest time. Default value: 1.0

Read-only variable to indicate the duration of one cycle of this Animation: the time it takes to play from time 0 to the KeyFrame with the largest time. Default value: 1.0

def delay: ObjectProperty[Duration]

Delays the start of an Animation. Default value: 0ms.

Delays the start of an Animation. Default value: 0ms.

def delay_=(d: Duration): Unit
def jumpTo(time: Duration): Unit

Jumps to a given position in this Animation.

Jumps to a given position in this Animation.

Value Params
time

the new position

def jumpTo(cuePoint: String): Unit

Jumps to a predefined position in this Animation.

Jumps to a predefined position in this Animation.

Value Params
cuePoint

the name of the cue point

def onFinished: ObjectProperty[EventHandler[ActionEvent]]

The action to be executed at the conclusion of this Animation.

The action to be executed at the conclusion of this Animation.

def onFinished_=(handler: EventHandler[ActionEvent]): Unit
def pause(): Unit

Pauses the Animation.

Pauses the Animation.

def play(): Unit

Plays Animation from current position in the direction indicated by rate.

Plays Animation from current position in the direction indicated by rate.

def playFrom(time: Duration): Unit

A convenience method to play this Animation from a specific position.

A convenience method to play this Animation from a specific position.

Value Params
time

position where to play from

def playFrom(cuePoint: String): Unit

A convenience method to play this Animation from a predefined position.

A convenience method to play this Animation from a predefined position.

Value Params
cuePoint

name of the cue point

def playFromStart(): Unit

Plays an Animation from initial position in forward direction.

Plays an Animation from initial position in forward direction.

Defines the direction/speed at which the Animation is expected to be played. Default value: 1.0

Defines the direction/speed at which the Animation is expected to be played. Default value: 1.0

def rate_=(r: Double): Unit

The status of the Animation.

The status of the Animation.

def stop(): Unit

Stops the Animation and resets the play head to its initial position.

Stops the Animation and resets the play head to its initial position.

def targetFramerate: Double

The target framerate is the maximum framerate at which this Animation will run, in frames per second.

The target framerate is the maximum framerate at which this Animation will run, in frames per second.

Read-only variable to indicate the total duration of this Animation, including repeats. Default value: 0ms

Read-only variable to indicate the total duration of this Animation, including repeats. Default value: 0ms

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate

Concrete fields

override val delegate: Animation