Overview
This Transition
starts all transitions in its content
in
sequential order.
content
of this Transition
inherit node
if their
node
variable is not specified.
duration
, repeatCount
, and autoReverse
variables
have no effect on this Transition
.
Code Segment Example:
import javafx.scene.shape.*;
import javafx.animation.transition.*;
...
var node = Rectangle {
x: 100 y: 40
height: 100 width: 100
arcHeight: 50 arcWidth: 50
fill: Color.VIOLET
}
var seqTransition = SequentialTransition {
node: node
content: [
PauseTransition { duration: 1s }, // wait a second
FadeTransition { duration: 3s fromValue: 1.0 toValue: 0.3
repeatCount:4 autoReverse: true},
TranslateTransition { duration: 2s byX: -100 repeatCount:2 autoReverse: true},
TranslateTransition { duration: 2s byX: 100 repeatCount:2 autoReverse: true},
RotateTransition { duration: 3s byAngle: 180
repeatCount:4 autoReverse: true},
ScaleTransition { duration: 2s node: node byX: 1.5 byY: 1.5
repeatCount:2 autoReverse: true},
]
}
seqTransition.play();
...
Profile: common
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | content | Transition[] |
A sequence of |
Inherited Variables
javafx.animation.transition.Transition
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | action | function():Void | null |
The action to be executed at the end of this |
|||
public | autoReverse | Boolean | false |
Defines whether this Defines whether this Profile: common |
|||
public-read | currentRate | Number |
Defines the current direction/rate at which the transition is being played. Defines the current direction/rate at which the transition is being played.
Rate Profile: common |
||||
public | duration | Duration | 0 |
The length of this The length of this Profile: common |
|||
public | interpolate | Interpolator | EASEBOTH |
Controls the timing for acceleration and deceleration at each transition cycle. Controls the timing for acceleration and deceleration at each transition cycle. This may only be changed prior to starting the transition or after the transition has ended. Default interpolator is set to Interpolator#EASEBOTH. EASEBOTHProfile: common |
|||
public | node | Node | null |
The target node of this |
|||
protected | parent | Transition | subclass | subclass | subclass | null |
The parent of this The parent of this Profile: common |
public-read | paused | Boolean |
Read-only var that indicates whether this Read-only var that indicates whether this
This value is initially
Note that running will remain Profile: common |
||||
public | rate | Number | 1.0 |
Defines the direction/rate at which the transition is being played. Defines the direction/rate at which the transition is being played.
Rate Profile: common |
|||
public | repeatCount | Number | 1.0 |
Defines the number of cycles in this transition. Defines the number of cycles in this transition.
The Profile: common |
|||
public-read | running | Boolean |
Read-only var that indicates whether this Read-only var that indicates whether this
This value is initially
Note that Profile: common |
||||
public | time | Duration | 0 |
Defines the reference elapsed time offset within the Timeline. |
|||
protected | timeline | Timeline | subclass | subclass | subclass |
An internal Timeline that get created at the creation of this
|
|
protected | timelineDirty | Boolean | subclass | subclass | subclass | true |
A Boolean value to indicate, to the subclass, its internal
A Boolean value to indicate, to the subclass, its internal
Profile: common |
protected | UNDEFINED | Number | subclass |
A Number value which do not map to a valid value for use in animation of
A Number value which do not map to a valid value for use in animation of
|
Function Summary
- public pause() : Void
-
Pauses this
Transition
.Pauses this
Transition
. If the transition is not currently running, this method has no effect. This willpause
all transitions in itscontent
.See Timeline#pause() for details.
Profile: common
- public play() : Void
-
Starts or resumes this
Transition
.Starts or resumes this
Transition
. This will play all transitions in itscontent
in sequential order. It is a no-op if already running.See Timeline#play() for details.
Profile: common
- public playFromStart() : Void
-
A convenient function.
A convenient function. It plays this
Transition
from initial position in forward direction. This willplayFromStart
all transitions in itscontent
in sequential order.See Timeline#playFromStart() for details.
Profile: common
- public stop() : Void
-
Stops this
Transition
and resets its playhead to initial position.Stops this
Transition
and resets its playhead to initial position. This willstop
all transitions in itscontent
.See Timeline#stop() for details.
Profile: common
Inherited Functions
javafx.animation.transition.Transition
- protected getTargetNode() : Node
- public pause() : Void
-
Pauses this
Transition
.Pauses this
Transition
. If the transition is not currently running, this method has no effect. See Timeline#pause() for details.Profile: common
- public play() : Void
-
Starts or resumes this
Transition
.Starts or resumes this
Transition
. It is a no-op if already running. See Timeline#play() for details.Profile: common
- public playFromStart() : Void
-
A convenient function.
A convenient function. It plays this
Transition
from initial position in forward direction. See Timeline#playFromStart() for details.Profile: common
- public stop() : Void
-
Stops this
Transition
and resets its playhead to initial position.Stops this
Transition
and resets its playhead to initial position. See Timeline#stop() for details.Profile: common