Transition executes an Animation#onFinished at the end of its
duration.
Code Segment Example:
import javafx.scene.shape.*;
import javafx.animation.*;
...
Rectangle rect = new Rectangle (100, 40, 100, 100);
rect.setArcHeight(50);
rect.setArcWidth(50);
rect.setFill(Color.VIOLET);
RotateTransition rt = new RotateTransition(Duration.millis(3000), rect);
rt.setByAngle(180);
rt.setCycleCount(4f);
rt.setAutoReverse(true);
SequentialTransition seqTransition = new SequentialTransition (
new PauseTransition(Duration.millis(1000)), // wait a second
rt
);
seqTransition.play();
...
Transition, Animation
| Modifier and Type | Field and Description |
|---|---|
| private static final Duration | |
| private ObjectProperty | duration
The duration of this |
| Access | Constructor and Description |
|---|---|
| public | PauseTransition(Duration
The duration of the duration)PauseTransitionThe constructor of |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | |
| public final Duration | |
| public void | interpolate(double frac)
Implements abstract javafx. The method |
| public final void |
| DEFAULT_DURATION | back to summary |
|---|---|
| private static final Duration DEFAULT_DURATION | |
| duration | back to summary |
|---|---|
| private ObjectProperty<Duration> duration The duration of this
It is not possible to change the Note While the unit of
| |
| PauseTransition | back to summary |
|---|---|
| public PauseTransition(Duration duration) The constructor of
| |
| PauseTransition | back to summary |
|---|---|
| public PauseTransition() The constructor of | |
| durationProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| getDuration | back to summary |
|---|---|
| public final Duration getDuration() | |
| interpolate | back to summary |
|---|---|
| public void interpolate(double frac) Implements abstract javafx. Doc from javafx. The method
| |
| setDuration | back to summary |
|---|---|
| public final void setDuration(Duration value) | |