Uses of Class
javafx.util.Duration
Package
Description
-
Uses of Duration in dev.webfx.kit.mapper.peers.javafxmedia
-
Uses of Duration in dev.webfx.kit.mapper.peers.javafxmedia.spi.gwtj2cl
-
Uses of Duration in javafx.animation
Modifier and TypeMethodDescriptionfinal Duration
Animation.getCurrentTime()
Gets the value of thecurrentTime
property.final Duration
Animation.getCycleDuration()
Gets the value of thecycleDuration
property.final Duration
Animation.getDelay()
Gets the value of thedelay
property.final Duration
FadeTransition.getDuration()
Gets the value of theduration
property.final Duration
PauseTransition.getDuration()
Gets the value of theduration
property.final Duration
ScaleTransition.getDuration()
Gets the value of theduration
property.final Duration
TranslateTransition.getDuration()
Gets the value of theduration
property.KeyFrame.getTime()
Returns the time offset of thisKeyFrame
.final Duration
Animation.getTotalDuration()
Gets the value of thetotalDuration
property.TimelineClipCore.setKeyFrames
(Collection<KeyFrame> keyFrames) Changes the keyframes.static Duration
TickCalculation.toDuration
(long ticks) Modifier and TypeMethodDescriptionfinal ReadOnlyObjectProperty<Duration>
Animation.currentTimeProperty()
Defines theAnimation
's play head position.final ReadOnlyObjectProperty<Duration>
Animation.cycleDurationProperty()
Read-only variable to indicate the duration of one cycle of thisAnimation
: the time it takes to play from time 0 to the end of the Animation (at the defaultrate
of 1.0).final ObjectProperty<Duration>
Animation.delayProperty()
Delays the start of an animation.final ObjectProperty<Duration>
FadeTransition.durationProperty()
The duration of thisFadeTransition
.final ObjectProperty<Duration>
PauseTransition.durationProperty()
The duration of thisTransition
.final ObjectProperty<Duration>
ScaleTransition.durationProperty()
The duration of thisScaleTransition
.final ObjectProperty<Duration>
TranslateTransition.durationProperty()
The duration of thisTranslateTransition
.final ObservableMap<String,
Duration> Animation.getCuePoints()
The cue points can be used to mark important positions of theAnimation
.final ReadOnlyObjectProperty<Duration>
Animation.totalDurationProperty()
Read-only variable to indicate the total duration of thisAnimation
, including repeats.Modifier and TypeMethodDescriptionstatic long
TickCalculation.fromDuration
(Duration duration) static long
TickCalculation.fromDuration
(Duration duration, double rate) void
Jumps to a given position in thisAnimation
.void
A convenience method to play thisAnimation
from a specific position.protected final void
Animation.setCycleDuration
(Duration value) Sets the value of thecycleDuration
property.abstract ClipEnvelope
ClipEnvelope.setCycleDuration
(Duration cycleDuration) FiniteClipEnvelope.setCycleDuration
(Duration cycleDuration) InfiniteClipEnvelope.setCycleDuration
(Duration cycleDuration) SingleLoopClipEnvelope.setCycleDuration
(Duration cycleDuration) final void
Sets the value of thedelay
property.final void
FadeTransition.setDuration
(Duration value) Sets the value of theduration
property.final void
PauseTransition.setDuration
(Duration value) Sets the value of theduration
property.final void
ScaleTransition.setDuration
(Duration value) Sets the value of theduration
property.final void
TranslateTransition.setDuration
(Duration value) Sets the value of theduration
property.protected void
ClipEnvelope.updateCycleTicks
(Duration cycleDuration) ModifierConstructorDescriptionFadeTransition
(Duration duration) The constructor ofFadeTransition
FadeTransition
(Duration duration, Node node) The constructor ofFadeTransition
Constructor ofKeyFrame
KeyFrame
(Duration time, String name, EventHandler<ActionEvent> onFinished, Collection<KeyValue> values) Constructor ofKeyFrame
KeyFrame
(Duration time, String name, EventHandler<ActionEvent> onFinished, KeyValue... values) Constructor ofKeyFrame
Constructor ofKeyFrame
KeyFrame
(Duration time, EventHandler<ActionEvent> onFinished, KeyValue... values) Constructor ofKeyFrame
NumberTangentInterpolator
(Duration duration, double value) NumberTangentInterpolator
(Duration inDuration, double inValue, Duration outDuration, double outValue) PauseTransition
(Duration duration) The constructor ofPauseTransition
.ScaleTransition
(Duration duration) The constructor ofScaleTransition
ScaleTransition
(Duration duration, Node node) The constructor ofScaleTransition
TranslateTransition
(Duration duration) The constructor ofTranslateTransition
TranslateTransition
(Duration duration, Node node) The constructor ofTranslateTransition
-
Uses of Duration in javafx.scene.control.skin
-
Uses of Duration in javafx.scene.media
Modifier and TypeMethodDescriptionfinal Duration
MediaPlayer.getCurrentTime()
Gets the value of thecurrentTime
property.Media.getDuration()
Gets the value of theduration
property.Modifier and TypeMethodDescriptionvoid
void
Media.setDuration
(Duration duration) Sets the value of theduration
property. -
Uses of Duration in javafx.util
Modifier and TypeFieldDescriptionstatic final Duration
Duration.INDEFINITE
An Infinite Duration.static final Duration
Duration.ONE
A Duration of 1 millisecond.static final Duration
Duration.UNKNOWN
A Duration of some unknown amount of time.static final Duration
Duration.ZERO
A Duration of 0 (no time).Modifier and TypeMethodDescriptionAdd this instance and another Duration instance to return a new Duration instance.Duration.divide
(double n) Divide this instance by a number to return a new Duration instance.Deprecated.This method produces surprising results by not taking units into account.static Duration
Duration.hours
(double h) Factory method that returns a Duration instance representing the specified number of hours.static Duration
Duration.millis
(double ms) Factory method that returns a Duration instance for a specified number of milliseconds.static Duration
Duration.minutes
(double m) Factory method that returns a Duration instance representing the specified number of minutes.Duration.multiply
(double n) Multiply this instance with a number representing millis and return a new Duration.Deprecated.This method produces surprising results by not taking units into account.Duration.negate()
Return a new Duration instance which has a negative number of milliseconds from this instance.static Duration
Duration.seconds
(double s) Factory method that returns a Duration instance representing the specified number of seconds.Subtract other Duration instance from this instance to return a new Duration instance.static Duration
Factory method that returns a Duration instance for a specified amount of time.Modifier and TypeMethodDescriptionAdd this instance and another Duration instance to return a new Duration instance.int
Compares durations represented by this object and the specified object.Deprecated.This method produces surprising results by not taking units into account.boolean
Duration.greaterThan
(Duration other) Returns true if the specified duration is greater than (>) this instance.boolean
Duration.greaterThanOrEqualTo
(Duration other) Returns true if the specified duration is greater than or equal to (>=) this instance.boolean
Returns true if the specified duration is less than (<) this instance.boolean
Duration.lessThanOrEqualTo
(Duration other) Returns true if the specified duration is less than or equal to (<=) this instance.Deprecated.This method produces surprising results by not taking units into account.Subtract other Duration instance from this instance to return a new Duration instance.