Animation

scalafx.animation.Animation
See theAnimation companion object
abstract class Animation extends SFXDelegate[Animation]

Wraps JavaFX's $AN.

Attributes

Companion
object
Graph
Supertypes
trait SFXDelegate[Animation]
class Object
trait Matchable
class Any
Known subtypes

Members list

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.

Attributes

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.

Attributes

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

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

Attributes

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

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

Attributes

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

Attributes

def delay: ObjectProperty[Duration]

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

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

Attributes

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 parameters

time

the new position

Attributes

def jumpTo(cuePoint: String): Unit

Jumps to a predefined position in this Animation.

Jumps to a predefined position in this Animation.

Value parameters

cuePoint

the name of the cue point

Attributes

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.

Attributes

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

Pauses the Animation.

Pauses the Animation.

Attributes

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.

Attributes

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 parameters

time

position where to play from

Attributes

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 parameters

cuePoint

name of the cue point

Attributes

Plays an Animation from initial position in forward direction.

Plays an Animation from initial position in forward direction.

Attributes

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

Attributes

def rate_=(r: Double): Unit

The status of the Animation.

The status of the Animation.

Attributes

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.

Attributes

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.

Attributes

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

Attributes

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 parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: Animation

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes