PathTransition

class PathTransition(val delegate: PathTransition) extends Transition with SFXDelegate[PathTransition]

Wraps a PathTransition.

Wraps a PathTransition.

Value Params
delegate

JavaFX PathTransition to be delegated.

Constructor

Creates a new ScalaFX PathTransition from a JavaFX PathTransition.

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

Value members

Constructors

def this(duration: Duration, path: Shape, node: Node)

The constructor of PathTransition.

The constructor of PathTransition.

Value Params
duration

The duration of this PathTransition.

node

The node of this PathTransition.

path

The path of this PathTransition.

def this(duration: Duration, path: Shape)

The constructor of PathTransition.

The constructor of PathTransition.

Value Params
duration

The duration of this PathTransition.

path

The path of this PathTransition.

Concrete methods

def duration: ObjectProperty[Duration]

The duration of this Transition.

The duration of this Transition.

def duration_=(d: Duration): Unit
def node: ObjectProperty[Node]

The target node of this PathTransition.

The target node of this PathTransition.

def node_=(n: Node): Unit
def orientation: ObjectProperty[OrientationType]

Specifies the upright orientation of node along the path.

Specifies the upright orientation of node along the path.

def path: ObjectProperty[Shape]

The shape on which outline the node should be animated.

The shape on which outline the node should be animated.

def path_=(s: Shape): Unit

Inherited 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.

Inherited from
Animation
def autoReverse_=(ar: Boolean): Unit
Inherited from
Animation

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.

Inherited from
Animation

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

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

Inherited from
Animation

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

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

Inherited from
Animation
def cycleCount_=(r: Int): Unit
Inherited from
Animation

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

Inherited from
Animation
def delay: ObjectProperty[Duration]

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

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

Inherited from
Animation
def delay_=(d: Duration): Unit
Inherited from
Animation
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
def interpolator: ObjectProperty[Interpolator]

Controls the timing for acceleration and deceleration at each Transition cycle. Default Value: Interpolator.EASE_BOTH.

Controls the timing for acceleration and deceleration at each Transition cycle. Default Value: Interpolator.EASE_BOTH.

Inherited from
Transition
def interpolator_=(i: Interpolator): Unit
Inherited from
Transition
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

Inherited from
Animation
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

Inherited from
Animation
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.

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

Pauses the Animation.

Pauses the Animation.

Inherited from
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.

Inherited from
Animation
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

Inherited from
Animation
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

Inherited from
Animation
def playFromStart(): Unit

Plays an Animation from initial position in forward direction.

Plays an Animation from initial position in forward direction.

Inherited from
Animation

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

Inherited from
Animation
def rate_=(r: Double): Unit
Inherited from
Animation

The status of the Animation.

The status of the Animation.

Inherited from
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.

Inherited from
Animation
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.

Inherited from
Animation
override def toString: String
Returns

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

Definition Classes
Inherited from
SFXDelegate

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 from
Animation

Concrete fields

override val delegate: PathTransition