Uses of Class
javafx.util.Duration
-
Packages that use Duration Package Description javafx.animation Provides the set of classes for ease of use transition based animations.javafx.concurrent Provides the set of classes for javafx.task.javafx.css Provides API for making properties styleable via CSS and for supporting pseudo-class state.javafx.css.converter Provides variousStyleConverterclasses that convert CSS parsed values.javafx.scene.control The JavaFX User Interface Controls (UI Controls or just Controls) are specialized Nodes in the JavaFX Scenegraph especially suited for reuse in many different application contexts.javafx.scene.media Provides the set of classes for integrating audio and video into Java FX Applications.javafx.util Contains various utilities and helper classes. -
-
Uses of Duration in javafx.animation
Methods in javafx.animation that return Duration Modifier and Type Method Description DurationAnimation. getCurrentTime()Gets the value of the property currentTime.DurationAnimation. getCycleDuration()Gets the value of the property cycleDuration.DurationAnimation. getDelay()Gets the value of the property delay.DurationFadeTransition. getDuration()Gets the value of the property duration.DurationFillTransition. getDuration()Gets the value of the property duration.DurationPathTransition. getDuration()Gets the value of the property duration.DurationPauseTransition. getDuration()Gets the value of the property duration.DurationRotateTransition. getDuration()Gets the value of the property duration.DurationScaleTransition. getDuration()Gets the value of the property duration.DurationStrokeTransition. getDuration()Gets the value of the property duration.DurationTranslateTransition. getDuration()Gets the value of the property duration.DurationKeyFrame. getTime()Returns the time offset of thisKeyFrame.DurationAnimation. getTotalDuration()Gets the value of the property totalDuration.Methods in javafx.animation that return types with arguments of type Duration Modifier and Type Method Description ReadOnlyObjectProperty<Duration>Animation. currentTimeProperty()Defines theAnimation's play head position.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 defaultrateof 1.0).ObjectProperty<Duration>Animation. delayProperty()Delays the start of an animation.ObjectProperty<Duration>FadeTransition. durationProperty()The duration of thisFadeTransition.ObjectProperty<Duration>FillTransition. durationProperty()The duration of thisFillTransition.ObjectProperty<Duration>PathTransition. durationProperty()The duration of thisTransition.ObjectProperty<Duration>PauseTransition. durationProperty()The duration of thisTransition.ObjectProperty<Duration>RotateTransition. durationProperty()The duration of thisRotateTransition.ObjectProperty<Duration>ScaleTransition. durationProperty()The duration of thisScaleTransition.ObjectProperty<Duration>StrokeTransition. durationProperty()The duration of thisStrokeTransition.ObjectProperty<Duration>TranslateTransition. durationProperty()The duration of thisTranslateTransition.ObservableMap<String,Duration>Animation. getCuePoints()The cue points can be used to mark important positions of theAnimation.ReadOnlyObjectProperty<Duration>Animation. totalDurationProperty()Read-only variable to indicate the total duration of thisAnimation, including repeats.Methods in javafx.animation with parameters of type Duration Modifier and Type Method Description voidAnimation. jumpTo(Duration time)Jumps to a given position in thisAnimation.voidAnimation. playFrom(Duration time)A convenience method to play thisAnimationfrom a specific position.protected voidAnimation. setCycleDuration(Duration value)Sets the value of the property cycleDuration.voidAnimation. setDelay(Duration value)Sets the value of the property delay.voidFadeTransition. setDuration(Duration value)Sets the value of the property duration.voidFillTransition. setDuration(Duration value)Sets the value of the property duration.voidPathTransition. setDuration(Duration value)Sets the value of the property duration.voidPauseTransition. setDuration(Duration value)Sets the value of the property duration.voidRotateTransition. setDuration(Duration value)Sets the value of the property duration.voidScaleTransition. setDuration(Duration value)Sets the value of the property duration.voidStrokeTransition. setDuration(Duration value)Sets the value of the property duration.voidTranslateTransition. setDuration(Duration value)Sets the value of the property duration.static InterpolatorInterpolator. TANGENT(Duration t, double v)Creates a tangent interpolator, for which in-tangent and out-tangent are identical.static InterpolatorInterpolator. TANGENT(Duration t1, double v1, Duration t2, double v2)Create a tangent interpolator.Constructors in javafx.animation with parameters of type Duration Constructor Description FadeTransition(Duration duration)The constructor ofFadeTransitionFadeTransition(Duration duration, Node node)The constructor ofFadeTransitionFillTransition(Duration duration)The constructor ofFillTransitionFillTransition(Duration duration, Color fromValue, Color toValue)The constructor ofFillTransitionFillTransition(Duration duration, Shape shape)The constructor ofFillTransitionFillTransition(Duration duration, Shape shape, Color fromValue, Color toValue)The constructor ofFillTransitionKeyFrame(Duration time, String name, KeyValue... values)Constructor ofKeyFrameKeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, Collection<KeyValue> values)Constructor ofKeyFrameKeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, KeyValue... values)Constructor ofKeyFrameKeyFrame(Duration time, KeyValue... values)Constructor ofKeyFrameKeyFrame(Duration time, EventHandler<ActionEvent> onFinished, KeyValue... values)Constructor ofKeyFramePathTransition(Duration duration, Shape path)The constructor ofPathTransition.PathTransition(Duration duration, Shape path, Node node)The constructor ofPathTransition.PauseTransition(Duration duration)The constructor ofPauseTransition.RotateTransition(Duration duration)The constructor ofRotateTransitionRotateTransition(Duration duration, Node node)The constructor ofRotateTransitionScaleTransition(Duration duration)The constructor ofScaleTransitionScaleTransition(Duration duration, Node node)The constructor ofScaleTransitionStrokeTransition(Duration duration)The constructor ofStrokeTransitionStrokeTransition(Duration duration, Color fromValue, Color toValue)The constructor ofStrokeTransitionStrokeTransition(Duration duration, Shape shape)The constructor ofStrokeTransitionStrokeTransition(Duration duration, Shape shape, Color fromValue, Color toValue)The constructor ofStrokeTransitionTranslateTransition(Duration duration)The constructor ofTranslateTransitionTranslateTransition(Duration duration, Node node)The constructor ofTranslateTransition -
Uses of Duration in javafx.concurrent
Fields in javafx.concurrent with type parameters of type Duration Modifier and Type Field Description static Callback<ScheduledService<?>,Duration>ScheduledService. EXPONENTIAL_BACKOFF_STRATEGYA Callback implementation for thebackoffStrategyproperty which will exponentially backoff the period between re-executions in the case of a failure.static Callback<ScheduledService<?>,Duration>ScheduledService. LINEAR_BACKOFF_STRATEGYA Callback implementation for thebackoffStrategyproperty which will linearly backoff the period between re-executions in the case of a failure.static Callback<ScheduledService<?>,Duration>ScheduledService. LOGARITHMIC_BACKOFF_STRATEGYA Callback implementation for thebackoffStrategyproperty which will logarithmically backoff the period between re-executions in the case of a failure.Methods in javafx.concurrent that return Duration Modifier and Type Method Description DurationScheduledService. getCumulativePeriod()Gets the value of the property cumulativePeriod.DurationScheduledService. getDelay()Gets the value of the property delay.DurationScheduledService. getMaximumCumulativePeriod()Gets the value of the property maximumCumulativePeriod.DurationScheduledService. getPeriod()Gets the value of the property period.Methods in javafx.concurrent that return types with arguments of type Duration Modifier and Type Method Description ObjectProperty<Callback<ScheduledService<?>,Duration>>ScheduledService. backoffStrategyProperty()Computes the amount of time to add to the period on each failure.ReadOnlyObjectProperty<Duration>ScheduledService. cumulativePeriodProperty()The current cumulative period in use between iterations.ObjectProperty<Duration>ScheduledService. delayProperty()The initial delay between when the ScheduledService is first started, and when it will begin operation.Callback<ScheduledService<?>,Duration>ScheduledService. getBackoffStrategy()Gets the value of the property backoffStrategy.ObjectProperty<Duration>ScheduledService. maximumCumulativePeriodProperty()The maximum allowed value for the cumulativePeriod.ObjectProperty<Duration>ScheduledService. periodProperty()The minimum amount of time to allow between the start of the last run and the start of the next run.Methods in javafx.concurrent with parameters of type Duration Modifier and Type Method Description voidScheduledService. setDelay(Duration value)Sets the value of the property delay.voidScheduledService. setMaximumCumulativePeriod(Duration value)Sets the value of the property maximumCumulativePeriod.voidScheduledService. setPeriod(Duration value)Sets the value of the property period.Method parameters in javafx.concurrent with type arguments of type Duration Modifier and Type Method Description voidScheduledService. setBackoffStrategy(Callback<ScheduledService<?>,Duration> value)Sets the value of the property backoffStrategy. -
Uses of Duration in javafx.css
Methods in javafx.css that return types with arguments of type Duration Modifier and Type Method Description CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function)Create a CssMetaData<S, Duration> with initial value of Duration.BLACK, and inherit flag defaulting to false.CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue)Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)Create a CssMetaData<S, Duration> with initial value, and inherit flag.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty)Create a StyleableProperty<Duration> using previously created CssMetaData for the givencssProperty.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function)Create a StyleableProperty<Duration>.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue)Create a StyleableProperty<Duration> with initial value.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)Create a StyleableProperty<Duration> with initial value and inherit flag.static StyleConverter<?,Duration>StyleConverter. getDurationConverter()Return aStyleConverterthat converts a String representation of a duration to aDuration.Methods in javafx.css with parameters of type Duration Modifier and Type Method Description CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue)Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)Create a CssMetaData<S, Duration> with initial value, and inherit flag.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue)Create a StyleableProperty<Duration> with initial value.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)Create a StyleableProperty<Duration> with initial value and inherit flag.Method parameters in javafx.css with type arguments of type Duration Modifier and Type Method Description CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function)Create a CssMetaData<S, Duration> with initial value of Duration.BLACK, and inherit flag defaulting to false.CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue)Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.CssMetaData<S,Duration>StyleablePropertyFactory. createDurationCssMetaData(String property, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)Create a CssMetaData<S, Duration> with initial value, and inherit flag.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function)Create a StyleableProperty<Duration>.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue)Create a StyleableProperty<Duration> with initial value.StyleableProperty<Duration>StyleablePropertyFactory. createStyleableDurationProperty(S styleable, String propertyName, String cssProperty, Function<S,StyleableProperty<Duration>> function, Duration initialValue, boolean inherits)Create a StyleableProperty<Duration> with initial value and inherit flag. -
Uses of Duration in javafx.css.converter
Methods in javafx.css.converter that return Duration Modifier and Type Method Description DurationDurationConverter. convert(ParsedValue<ParsedValue<?,Size>,Duration> value, Font font)Methods in javafx.css.converter that return types with arguments of type Duration Modifier and Type Method Description static StyleConverter<ParsedValue<?,Size>,Duration>DurationConverter. getInstance()Method parameters in javafx.css.converter with type arguments of type Duration Modifier and Type Method Description DurationDurationConverter. convert(ParsedValue<ParsedValue<?,Size>,Duration> value, Font font) -
Uses of Duration in javafx.scene.control
Methods in javafx.scene.control that return Duration Modifier and Type Method Description DurationTooltip. getHideDelay()Gets the value of the property hideDelay.DurationSpinner. getInitialDelay()Gets the value of the property initialDelay.DurationSpinner. getRepeatDelay()Gets the value of the property repeatDelay.DurationTooltip. getShowDelay()Gets the value of the property showDelay.DurationTooltip. getShowDuration()Gets the value of the property showDuration.Methods in javafx.scene.control that return types with arguments of type Duration Modifier and Type Method Description ObjectProperty<Duration>Tooltip. hideDelayProperty()The duration in which to continue showing the tooltip after the mouse has left the node.ObjectProperty<Duration>Spinner. initialDelayProperty()The duration that the mouse has to be pressed on an arrow button before the next value steps.ObjectProperty<Duration>Spinner. repeatDelayProperty()The duration that the mouse has to be pressed for each successive step after the first value steps.ObjectProperty<Duration>Tooltip. showDelayProperty()The delay between the mouse entering the hovered node and when the associated tooltip will be shown to the user.ObjectProperty<Duration>Tooltip. showDurationProperty()The duration that the tooltip should remain showing for until it is no longer visible to the user.Methods in javafx.scene.control with parameters of type Duration Modifier and Type Method Description voidTooltip. setHideDelay(Duration hideDelay)Sets the value of the property hideDelay.voidSpinner. setInitialDelay(Duration value)Sets the value of the property initialDelay.voidSpinner. setRepeatDelay(Duration value)Sets the value of the property repeatDelay.voidTooltip. setShowDelay(Duration showDelay)Sets the value of the property showDelay.voidTooltip. setShowDuration(Duration showDuration)Sets the value of the property showDuration. -
Uses of Duration in javafx.scene.media
Methods in javafx.scene.media that return Duration Modifier and Type Method Description DurationMediaPlayer. getBufferProgressTime()Retrieves thebufferProgressTimevalue.DurationMediaPlayer. getCurrentTime()Retrieves the current media time.DurationMediaPlayer. getCycleDuration()Retrieves the cycle duration in seconds.DurationMedia. getDuration()Retrieve the duration in seconds of the media.DurationMediaPlayer. getStartTime()Retrieves the start time.DurationMediaPlayer. getStopTime()Retrieves the stop time.DurationMediaPlayer. getTotalDuration()Retrieves the total playback duration including all cycles (repetitions).Methods in javafx.scene.media that return types with arguments of type Duration Modifier and Type Method Description ReadOnlyObjectProperty<Duration>MediaPlayer. bufferProgressTimeProperty()The current buffer position indicating how much media can be played without stalling theMediaPlayer.ReadOnlyObjectProperty<Duration>MediaPlayer. currentTimeProperty()The current media playback time.ReadOnlyObjectProperty<Duration>MediaPlayer. cycleDurationProperty()ReadOnlyObjectProperty<Duration>Media. durationProperty()The duration in seconds of the source media.Pair<String,Duration>MediaMarkerEvent. getMarker()Retrieves the marker the event represents.ObservableMap<String,Duration>Media. getMarkers()Retrieve the markers defined on thisMediainstance.ObjectProperty<Duration>MediaPlayer. startTimeProperty()The time offset where media should start playing, or restart from when repeating.ObjectProperty<Duration>MediaPlayer. stopTimeProperty()The time offset where media should stop playing or restart when repeating.ReadOnlyObjectProperty<Duration>MediaPlayer. totalDurationProperty()The total amount of play time if allowed to play until finished.Methods in javafx.scene.media with parameters of type Duration Modifier and Type Method Description voidMediaPlayer. seek(Duration seekTime)Seeks the player to a new playback time.voidMediaPlayer. setStartTime(Duration value)Sets the start time.voidMediaPlayer. setStopTime(Duration value)Sets the stop time. -
Uses of Duration in javafx.util
Fields in javafx.util declared as Duration Modifier and Type Field Description static DurationDuration. INDEFINITEAn Infinite Duration.static DurationDuration. ONEA Duration of 1 millisecond.static DurationDuration. UNKNOWNA Duration of some unknown amount of time.static DurationDuration. ZEROA Duration of 0 (no time).Methods in javafx.util that return Duration Modifier and Type Method Description DurationDuration. add(Duration other)Add this instance and another Duration instance to return a new Duration instance.DurationDuration. divide(double n)Divide this instance by a number to return a new Duration instance.DurationDuration. divide(Duration other)Deprecated.This method produces surprising results by not taking units into account.static DurationDuration. hours(double h)Factory method that returns a Duration instance representing the specified number of hours.static DurationDuration. millis(double ms)Factory method that returns a Duration instance for a specified number of milliseconds.static DurationDuration. minutes(double m)Factory method that returns a Duration instance representing the specified number of minutes.DurationDuration. multiply(double n)Multiply this instance with a number representing millis and return a new Duration.DurationDuration. multiply(Duration other)Deprecated.This method produces surprising results by not taking units into account.DurationDuration. negate()Return a new Duration instance which has a negative number of milliseconds from this instance.static DurationDuration. seconds(double s)Factory method that returns a Duration instance representing the specified number of seconds.DurationDuration. subtract(Duration other)Subtract other Duration instance from this instance to return a new Duration instance.static DurationDuration. valueOf(String time)Factory method that returns a Duration instance for a specified amount of time.Methods in javafx.util with parameters of type Duration Modifier and Type Method Description DurationDuration. add(Duration other)Add this instance and another Duration instance to return a new Duration instance.intDuration. compareTo(Duration d)Compares durations represented by this object and the specified object.DurationDuration. divide(Duration other)Deprecated.This method produces surprising results by not taking units into account.booleanDuration. greaterThan(Duration other)Returns true if the specified duration is greater than (>) this instance.booleanDuration. greaterThanOrEqualTo(Duration other)Returns true if the specified duration is greater than or equal to (>=) this instance.booleanDuration. lessThan(Duration other)Returns true if the specified duration is less than (<) this instance.booleanDuration. lessThanOrEqualTo(Duration other)Returns true if the specified duration is less than or equal to (<=) this instance.DurationDuration. multiply(Duration other)Deprecated.This method produces surprising results by not taking units into account.DurationDuration. subtract(Duration other)Subtract other Duration instance from this instance to return a new Duration instance.
-