Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class Timeline extends Animation
Timeline
can be used to define a free from animation of any
WritableValue
, e.g. all
JavaFX Properties
.
A Timeline
, defined by one or more KeyFrame
s, processes
individual KeyFrame
sequentially, in the order specified by
KeyFrame.time
. The animated properties, defined as key values in
KeyFrame.values
, are interpolated
to/from the targeted key values at the specified time of the KeyFrame
to Timeline
's initial position, depends on Timeline
's
direction.
Timeline
processes individual KeyFrame
at or after specified
time interval elapsed, it does not guarantee the timing when KeyFrame
is processed.
If a KeyFrame
is not provided for the time==0s
instant, one
will be synthesized using the target values that are current at the time
Animation.play()
or Animation.playFromStart()
is called.
It is not possible to change the keyFrames
of a running Timeline
.
If the value of keyFrames
is changed for a running Timeline
, it
has to be stopped and started again to pick up the new value.
autoReverse, currentRate, currentTime, cycleCount, cycleDuration, delay, onFinished, rate, status, totalDuration
Animation.Status
INDEFINITE
Constructor and Description |
---|
Timeline()
The constructor of
Timeline . |
Timeline(double targetFramerate)
The constructor of
Timeline . |
Timeline(double targetFramerate,
KeyFrame... keyFrames)
The constructor of
Timeline . |
Timeline(KeyFrame... keyFrames)
The constructor of
Timeline . |
Modifier and Type | Method and Description |
---|---|
ObservableList<KeyFrame> |
getKeyFrames()
Returns the
KeyFrames of this Timeline . |
void |
stop()
Stops the animation and resets the play head to its initial position.
|
autoReverseProperty, currentRateProperty, currentTimeProperty, cycleCountProperty, cycleDurationProperty, delayProperty, getCuePoints, getCurrentRate, getCurrentTime, getCycleCount, getCycleDuration, getDelay, getOnFinished, getRate, getStatus, getTargetFramerate, getTotalDuration, isAutoReverse, jumpTo, jumpTo, onFinishedProperty, pause, play, playFrom, playFrom, playFromStart, rateProperty, setAutoReverse, setCycleCount, setCycleDuration, setDelay, setOnFinished, setRate, setStatus, statusProperty, totalDurationProperty
public Timeline(double targetFramerate, KeyFrame... keyFrames)
Timeline
.
This constructor allows to define a Animation.targetFramerate
.targetFramerate
- The custom target frame rate for this Timeline
keyFrames
- The keyframes of this Timeline
public Timeline(KeyFrame... keyFrames)
Timeline
.keyFrames
- The keyframes of this Timeline
public Timeline(double targetFramerate)
Timeline
.
This constructor allows to define a Animation.targetFramerate
.targetFramerate
- The custom target frame rate for this Timeline
public Timeline()
Timeline
.public final ObservableList<KeyFrame> getKeyFrames()
KeyFrames
of this Timeline
.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to