Transition plays a list of Animations in parallel.
Children of this Transition inherit node, if their
node property is not specified.
Code Segment Example:
Rectangle rect = new Rectangle (100, 40, 100, 100);
rect.setArcHeight(50);
rect.setArcWidth(50);
rect.setFill(Color.VIOLET);
final Duration SEC_2 = Duration.millis(2000);
final Duration SEC_3 = Duration.millis(3000);
FadeTransition ft = new FadeTransition(SEC_3);
ft.setFromValue(1.0f);
ft.setToValue(0.3f);
ft.setCycleCount(2f);
ft.setAutoReverse(true);
TranslateTransition tt = new TranslateTransition(SEC_2);
tt.setFromX(-100f);
tt.setToX(100f);
tt.setCycleCount(2f);
tt.setAutoReverse(true);
RotateTransition rt = new RotateTransition(SEC_3);
rt.setByAngle(180f);
rt.setCycleCount(4f);
rt.setAutoReverse(true);
ScaleTransition st = new ScaleTransition(SEC_2);
st.setByX(1.5f);
st.setByY(1.5f);
st.setCycleCount(2f);
st.setAutoReverse(true);
ParallelTransition pt = new ParallelTransition(rect, ft, tt, rt, st);
pt.play();
Transition, Animation
| Modifier and Type | Field and Description |
|---|---|
| private Animation[] | |
| private final ObservableList | |
| private boolean | |
| private final InvalidationListener | |
| private final Set | |
| private long | |
| private static final Node | |
| private long[] | |
| private long[] | |
| private static final Animation[] | |
| private static final double | |
| private boolean[] | |
| private ObjectProperty | node
This |
| private long[] | |
| private long | |
| private final ChangeListener | |
| private double[] | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | ParallelTransition(Node node, Animation...
The child children)Animations of
this ParallelTransitionThe constructor of |
| public | ParallelTransition(Animation...
The child children)Animations of
this ParallelTransitionThe constructor of |
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private double | calculateFraction(long currentTicks, long cycleTicks)
Hides javafx.
|
| private static boolean | |
| private Duration | |
| pack-priv void | doJumpTo(long currentTicks, long cycleTicks, boolean forceJump)
Overrides javafx.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public final ObservableList | |
| public final Node | |
| protected Node | getParentTargetNode()
Overrides javafx. Returns the first non- |
| protected void | interpolate(double
The relative position frac)Implements abstract javafx. The method |
| private void | |
| private void | |
| public final ObjectProperty | |
| public final void | |
| private boolean | |
| pack-priv void |
| cachedChildren | back to summary |
|---|---|
| private Animation[] cachedChildren | |
| children | back to summary |
|---|---|
| private final ObservableList<Animation> children | |
| childrenChanged | back to summary |
|---|---|
| private boolean childrenChanged | |
| childrenListener | back to summary |
|---|---|
| private final InvalidationListener childrenListener | |
| childrenSet | back to summary |
|---|---|
| private final Set<Animation> childrenSet | |
| cycleTime | back to summary |
|---|---|
| private long cycleTime | |
| DEFAULT_NODE | back to summary |
|---|---|
| private static final Node DEFAULT_NODE | |
| delays | back to summary |
|---|---|
| private long[] delays | |
| durations | back to summary |
|---|---|
| private long[] durations | |
| EMPTY_ANIMATION_ARRAY | back to summary |
|---|---|
| private static final Animation[] EMPTY_ANIMATION_ARRAY | |
| EPSILON | back to summary |
|---|---|
| private static final double EPSILON | |
| forceChildSync | back to summary |
|---|---|
| private boolean[] forceChildSync | |
| node | back to summary |
|---|---|
| private ObjectProperty<Node> node This
It is not possible to change the target | |
| offsetTicks | back to summary |
|---|---|
| private long[] offsetTicks | |
| oldTicks | back to summary |
|---|---|
| private long oldTicks | |
| rateListener | back to summary |
|---|---|
| private final ChangeListener<Number> rateListener | |
| rates | back to summary |
|---|---|
| private double[] rates | |
| toggledRate | back to summary |
|---|---|
| private boolean toggledRate | |
| ParallelTransition | back to summary |
|---|---|
| public ParallelTransition(Node node, Animation... children) The constructor of
| |
| ParallelTransition | back to summary |
|---|---|
| public ParallelTransition(Animation... children) The constructor of
| |
| ParallelTransition | back to summary |
|---|---|
| public ParallelTransition(Node node) The constructor of
| |
| ParallelTransition | back to summary |
|---|---|
| public ParallelTransition() The constructor of | |
| ParallelTransition | back to summary |
|---|---|
| pack-priv ParallelTransition(AbstractPrimaryTimer timer) | |
| calculateFraction | back to summary |
|---|---|
| private double calculateFraction(long currentTicks, long cycleTicks) | |
| checkCycle | back to summary |
|---|---|
| private static boolean checkCycle(Animation child, Animation parent) | |
| computeCycleDuration | back to summary |
|---|---|
| private Duration computeCycleDuration() | |
| doJumpTo | back to summary |
|---|---|
| pack-priv void doJumpTo(long currentTicks, long cycleTicks, boolean forceJump) Overrides javafx.
| |
| doPause | back to summary |
|---|---|
| pack-priv void doPause() Overrides javafx.
| |
| doPlayTo | back to summary |
|---|---|
| pack-priv void doPlayTo(long currentTicks, long cycleTicks) Overrides javafx.
| |
| doResume | back to summary |
|---|---|
| pack-priv void doResume() Overrides javafx.
| |
| doStart | back to summary |
|---|---|
| pack-priv void doStart(boolean forceSync) Overrides javafx.
| |
| doStop | back to summary |
|---|---|
| pack-priv void doStop() Overrides javafx.
| |
| getChildren | back to summary |
|---|---|
| public final ObservableList A list of
It is not possible to change the children of a running
| |
| getNode | back to summary |
|---|---|
| public final Node getNode() | |
| getParentTargetNode | back to summary |
|---|---|
| protected Node getParentTargetNode() Overrides javafx. Doc from javafx. Returns the first non-
A parent animation is one that can have child animations. Examples are
Note that if this | |
| interpolate | back to summary |
|---|---|
| protected void interpolate(double frac) Implements abstract javafx. Doc from javafx. The method
| |
| jumpToEnd | back to summary |
|---|---|
| private void jumpToEnd() | |
| jumpToStart | back to summary |
|---|---|
| private void jumpToStart() | |
| nodeProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| setNode | back to summary |
|---|---|
| public final void setNode(Node value) | |
| startChild | back to summary |
|---|---|
| private boolean startChild(Animation child, int index) | |
| sync | back to summary |
|---|---|
| pack-priv void sync(boolean forceSync) Overrides javafx.
| |