<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_77) on Fri Apr 22 13:47:02 UTC 2016 --> <title>Uses of Class javafx.util.Duration (JavaFX 8)</title> <meta name="date" content="2016-04-22"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class javafx.util.Duration (JavaFX 8)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../overview-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">JavaFX 8</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../index.html?javafx/util/class-use/Duration.html" target="_top">Frames</a></li> <li><a href="Duration.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class javafx.util.Duration" class="title">Uses of Class<br>javafx.util.Duration</h2> </div> <div class="classUseContainer"> <ul class="blockList"> <li class="blockList"> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> <caption><span>Packages that use <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Package</th> <th class="colLast" scope="col">Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><a href="#javafx.animation">javafx.animation</a></td> <td class="colLast"> <div class="block">Provides the set of classes for ease of use transition based animations.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#javafx.concurrent">javafx.concurrent</a></td> <td class="colLast"> <div class="block">Provides the set of classes for javafx.task.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#javafx.css">javafx.css</a></td> <td class="colLast"> <div class="block">Provides API for making properties styleable via CSS and for supporting pseudo-class state.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><a href="#javafx.scene.media">javafx.scene.media</a></td> <td class="colLast"> <div class="block">Provides the set of classes for integrating audio and video into Java FX Applications.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><a href="#javafx.util">javafx.util</a></td> <td class="colLast"> <div class="block">Contains various utilities and helper classes.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="javafx.animation"> <!-- --> </a> <h3>Uses of <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> in <a href="../../../javafx/animation/package-summary.html">javafx.animation</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/animation/package-summary.html">javafx.animation</a> that return <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#getCurrentTime--">getCurrentTime</a></span>()</code> <div class="block">Gets the value of the property currentTime.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#getCycleDuration--">getCycleDuration</a></span>()</code> <div class="block">Gets the value of the property cycleDuration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#getDelay--">getDelay</a></span>()</code> <div class="block">Gets the value of the property delay.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">FadeTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/FadeTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">PauseTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/PauseTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">PathTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/PathTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">StrokeTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">FillTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">RotateTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/RotateTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">TranslateTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/TranslateTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">ScaleTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/ScaleTransition.html#getDuration--">getDuration</a></span>()</code> <div class="block">Gets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">KeyFrame.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/KeyFrame.html#getTime--">getTime</a></span>()</code> <div class="block">Returns the time offset of this <code>KeyFrame</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#getTotalDuration--">getTotalDuration</a></span>()</code> <div class="block">Gets the value of the property totalDuration.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/animation/package-summary.html">javafx.animation</a> that return types with arguments of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#currentTimeProperty--">currentTimeProperty</a></span>()</code> <div class="block">Defines the <code>Animation</code>'s play head position.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#cycleDurationProperty--">cycleDurationProperty</a></span>()</code> <div class="block">Read-only variable to indicate the duration of one cycle of this <code>Animation</code>: the time it takes to play from time 0 to the end of the Animation (at the default <code>rate</code> of 1.0).</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#delayProperty--">delayProperty</a></span>()</code> <div class="block">Delays the start of an animation.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">FadeTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/FadeTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>FadeTransition</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">PauseTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/PauseTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>Transition</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">PathTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/PathTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>Transition</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StrokeTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>StrokeTransition</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">FillTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>FillTransition</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">RotateTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/RotateTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>RotateTransition</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">TranslateTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/TranslateTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>TranslateTransition</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScaleTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/ScaleTransition.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration of this <code>ScaleTransition</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/collections/ObservableMap.html" title="interface in javafx.collections">ObservableMap</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#getCuePoints--">getCuePoints</a></span>()</code> <div class="block">The cue points can be used to mark important positions of the <code>Animation</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#totalDurationProperty--">totalDurationProperty</a></span>()</code> <div class="block">Read-only variable to indicate the total duration of this <code>Animation</code>, including repeats.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/animation/package-summary.html">javafx.animation</a> with parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#jumpTo-javafx.util.Duration-">jumpTo</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time)</code> <div class="block">Jumps to a given position in this <code>Animation</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#playFrom-javafx.util.Duration-">playFrom</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time)</code> <div class="block">A convenience method to play this <code>Animation</code> from a specific position.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#setCycleDuration-javafx.util.Duration-">setCycleDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property cycleDuration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">Animation.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Animation.html#setDelay-javafx.util.Duration-">setDelay</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property delay.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">FadeTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/FadeTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">PauseTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/PauseTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">PathTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/PathTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">StrokeTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">FillTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">RotateTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/RotateTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">TranslateTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/TranslateTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">ScaleTransition.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/ScaleTransition.html#setDuration-javafx.util.Duration-">setDuration</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property duration.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/animation/Interpolator.html" title="class in javafx.animation">Interpolator</a></code></td> <td class="colLast"><span class="typeNameLabel">Interpolator.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Interpolator.html#TANGENT-javafx.util.Duration-double-">TANGENT</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> t, double v)</code> <div class="block">Creates a tangent interpolator, for which in-tangent and out-tangent are identical.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/animation/Interpolator.html" title="class in javafx.animation">Interpolator</a></code></td> <td class="colLast"><span class="typeNameLabel">Interpolator.</span><code><span class="memberNameLink"><a href="../../../javafx/animation/Interpolator.html#TANGENT-javafx.util.Duration-double-javafx.util.Duration-double-">TANGENT</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> t1, double v1, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> t2, double v2)</code> <div class="block">Create a tangent interpolator.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> <caption><span>Constructors in <a href="../../../javafx/animation/package-summary.html">javafx.animation</a> with parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/FadeTransition.html#FadeTransition-javafx.util.Duration-">FadeTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>FadeTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/FadeTransition.html#FadeTransition-javafx.util.Duration-javafx.scene.Node-">FadeTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a> node)</code> <div class="block">The constructor of <code>FadeTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#FillTransition-javafx.util.Duration-">FillTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>FillTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#FillTransition-javafx.util.Duration-javafx.scene.paint.Color-javafx.scene.paint.Color-">FillTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> fromValue, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> toValue)</code> <div class="block">The constructor of <code>FillTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#FillTransition-javafx.util.Duration-javafx.scene.shape.Shape-">FillTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/shape/Shape.html" title="class in javafx.scene.shape">Shape</a> shape)</code> <div class="block">The constructor of <code>FillTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/FillTransition.html#FillTransition-javafx.util.Duration-javafx.scene.shape.Shape-javafx.scene.paint.Color-javafx.scene.paint.Color-">FillTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/shape/Shape.html" title="class in javafx.scene.shape">Shape</a> shape, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> fromValue, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> toValue)</code> <div class="block">The constructor of <code>FillTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/KeyFrame.html#KeyFrame-javafx.util.Duration-javafx.event.EventHandler-javafx.animation.KeyValue...-">KeyFrame</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time, <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>> onFinished, <a href="../../../javafx/animation/KeyValue.html" title="class in javafx.animation">KeyValue</a>... values)</code> <div class="block">Constructor of <code>KeyFrame</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/KeyFrame.html#KeyFrame-javafx.util.Duration-javafx.animation.KeyValue...-">KeyFrame</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time, <a href="../../../javafx/animation/KeyValue.html" title="class in javafx.animation">KeyValue</a>... values)</code> <div class="block">Constructor of <code>KeyFrame</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/KeyFrame.html#KeyFrame-javafx.util.Duration-java.lang.String-javafx.event.EventHandler-java.util.Collection-">KeyFrame</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>> onFinished, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><<a href="../../../javafx/animation/KeyValue.html" title="class in javafx.animation">KeyValue</a>> values)</code> <div class="block">Constructor of <code>KeyFrame</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/KeyFrame.html#KeyFrame-javafx.util.Duration-java.lang.String-javafx.event.EventHandler-javafx.animation.KeyValue...-">KeyFrame</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, <a href="../../../javafx/event/EventHandler.html" title="interface in javafx.event">EventHandler</a><<a href="../../../javafx/event/ActionEvent.html" title="class in javafx.event">ActionEvent</a>> onFinished, <a href="../../../javafx/animation/KeyValue.html" title="class in javafx.animation">KeyValue</a>... values)</code> <div class="block">Constructor of <code>KeyFrame</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/KeyFrame.html#KeyFrame-javafx.util.Duration-java.lang.String-javafx.animation.KeyValue...-">KeyFrame</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> time, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, <a href="../../../javafx/animation/KeyValue.html" title="class in javafx.animation">KeyValue</a>... values)</code> <div class="block">Constructor of <code>KeyFrame</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/PathTransition.html#PathTransition-javafx.util.Duration-javafx.scene.shape.Shape-">PathTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/shape/Shape.html" title="class in javafx.scene.shape">Shape</a> path)</code> <div class="block">The constructor of <code>PathTransition</code>.</div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/PathTransition.html#PathTransition-javafx.util.Duration-javafx.scene.shape.Shape-javafx.scene.Node-">PathTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/shape/Shape.html" title="class in javafx.scene.shape">Shape</a> path, <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a> node)</code> <div class="block">The constructor of <code>PathTransition</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/PauseTransition.html#PauseTransition-javafx.util.Duration-">PauseTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>PauseTransition</code>.</div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/RotateTransition.html#RotateTransition-javafx.util.Duration-">RotateTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>RotateTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/RotateTransition.html#RotateTransition-javafx.util.Duration-javafx.scene.Node-">RotateTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a> node)</code> <div class="block">The constructor of <code>RotateTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/ScaleTransition.html#ScaleTransition-javafx.util.Duration-">ScaleTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>ScaleTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/ScaleTransition.html#ScaleTransition-javafx.util.Duration-javafx.scene.Node-">ScaleTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a> node)</code> <div class="block">The constructor of <code>ScaleTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#StrokeTransition-javafx.util.Duration-">StrokeTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>StrokeTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#StrokeTransition-javafx.util.Duration-javafx.scene.paint.Color-javafx.scene.paint.Color-">StrokeTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> fromValue, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> toValue)</code> <div class="block">The constructor of <code>StrokeTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#StrokeTransition-javafx.util.Duration-javafx.scene.shape.Shape-">StrokeTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/shape/Shape.html" title="class in javafx.scene.shape">Shape</a> shape)</code> <div class="block">The constructor of <code>StrokeTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/StrokeTransition.html#StrokeTransition-javafx.util.Duration-javafx.scene.shape.Shape-javafx.scene.paint.Color-javafx.scene.paint.Color-">StrokeTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/shape/Shape.html" title="class in javafx.scene.shape">Shape</a> shape, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> fromValue, <a href="../../../javafx/scene/paint/Color.html" title="class in javafx.scene.paint">Color</a> toValue)</code> <div class="block">The constructor of <code>StrokeTransition</code></div> </td> </tr> <tr class="altColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/TranslateTransition.html#TranslateTransition-javafx.util.Duration-">TranslateTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration)</code> <div class="block">The constructor of <code>TranslateTransition</code></div> </td> </tr> <tr class="rowColor"> <td class="colLast"><code><span class="memberNameLink"><a href="../../../javafx/animation/TranslateTransition.html#TranslateTransition-javafx.util.Duration-javafx.scene.Node-">TranslateTransition</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> duration, <a href="../../../javafx/scene/Node.html" title="class in javafx.scene">Node</a> node)</code> <div class="block">The constructor of <code>TranslateTransition</code></div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="javafx.concurrent"> <!-- --> </a> <h3>Uses of <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> in <a href="../../../javafx/concurrent/package-summary.html">javafx.concurrent</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> <caption><span>Fields in <a href="../../../javafx/concurrent/package-summary.html">javafx.concurrent</a> with type parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Callback.html" title="interface in javafx.util">Callback</a><<a href="../../../javafx/concurrent/ScheduledService.html" title="class in javafx.concurrent">ScheduledService</a><?>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#EXPONENTIAL_BACKOFF_STRATEGY">EXPONENTIAL_BACKOFF_STRATEGY</a></span></code> <div class="block">A Callback implementation for the <code>backoffStrategy</code> property which will exponentially backoff the period between re-executions in the case of a failure.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Callback.html" title="interface in javafx.util">Callback</a><<a href="../../../javafx/concurrent/ScheduledService.html" title="class in javafx.concurrent">ScheduledService</a><?>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#LINEAR_BACKOFF_STRATEGY">LINEAR_BACKOFF_STRATEGY</a></span></code> <div class="block">A Callback implementation for the <code>backoffStrategy</code> property which will linearly backoff the period between re-executions in the case of a failure.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Callback.html" title="interface in javafx.util">Callback</a><<a href="../../../javafx/concurrent/ScheduledService.html" title="class in javafx.concurrent">ScheduledService</a><?>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#LOGARITHMIC_BACKOFF_STRATEGY">LOGARITHMIC_BACKOFF_STRATEGY</a></span></code> <div class="block">A Callback implementation for the <code>backoffStrategy</code> property which will logarithmically backoff the period between re-executions in the case of a failure.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/concurrent/package-summary.html">javafx.concurrent</a> that return <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#getCumulativePeriod--">getCumulativePeriod</a></span>()</code> <div class="block">Gets the value of the property cumulativePeriod.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#getDelay--">getDelay</a></span>()</code> <div class="block">Gets the value of the property delay.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#getMaximumCumulativePeriod--">getMaximumCumulativePeriod</a></span>()</code> <div class="block">Gets the value of the property maximumCumulativePeriod.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#getPeriod--">getPeriod</a></span>()</code> <div class="block">Gets the value of the property period.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/concurrent/package-summary.html">javafx.concurrent</a> that return types with arguments of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Callback.html" title="interface in javafx.util">Callback</a><<a href="../../../javafx/concurrent/ScheduledService.html" title="class in javafx.concurrent">ScheduledService</a><?>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#backoffStrategyProperty--">backoffStrategyProperty</a></span>()</code> <div class="block">Computes the amount of time to add to the period on each failure.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#cumulativePeriodProperty--">cumulativePeriodProperty</a></span>()</code> <div class="block">The current cumulative period in use between iterations.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#delayProperty--">delayProperty</a></span>()</code> <div class="block">The initial delay between when the ScheduledService is first started, and when it will begin operation.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Callback.html" title="interface in javafx.util">Callback</a><<a href="../../../javafx/concurrent/ScheduledService.html" title="class in javafx.concurrent">ScheduledService</a><?>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#getBackoffStrategy--">getBackoffStrategy</a></span>()</code> <div class="block">Gets the value of the property backoffStrategy.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#maximumCumulativePeriodProperty--">maximumCumulativePeriodProperty</a></span>()</code> <div class="block">The maximum allowed value for the cumulativePeriod.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#periodProperty--">periodProperty</a></span>()</code> <div class="block">The minimum amount of time to allow between the start of the last run and the start of the next run.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/concurrent/package-summary.html">javafx.concurrent</a> with parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#setDelay-javafx.util.Duration-">setDelay</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property delay.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#setMaximumCumulativePeriod-javafx.util.Duration-">setMaximumCumulativePeriod</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property maximumCumulativePeriod.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#setPeriod-javafx.util.Duration-">setPeriod</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the value of the property period.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Method parameters in <a href="../../../javafx/concurrent/package-summary.html">javafx.concurrent</a> with type arguments of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">ScheduledService.</span><code><span class="memberNameLink"><a href="../../../javafx/concurrent/ScheduledService.html#setBackoffStrategy-javafx.util.Callback-">setBackoffStrategy</a></span>(<a href="../../../javafx/util/Callback.html" title="interface in javafx.util">Callback</a><<a href="../../../javafx/concurrent/ScheduledService.html" title="class in javafx.concurrent">ScheduledService</a><?>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>> value)</code> <div class="block">Sets the value of the property backoffStrategy.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="javafx.css"> <!-- --> </a> <h3>Uses of <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> in <a href="../../../javafx/css/package-summary.html">javafx.css</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/css/package-summary.html">javafx.css</a> that return types with arguments of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value of Duration.BLACK, and inherit flag defaulting to false.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-javafx.util.Duration-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-javafx.util.Duration-boolean-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue, boolean inherits)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value, and inherit flag.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty)</code> <div class="block">Create a StyleableProperty<Duration> using previously created CssMetaData for the given <code>cssProperty</code>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function)</code> <div class="block">Create a StyleableProperty<Duration>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-javafx.util.Duration-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue)</code> <div class="block">Create a StyleableProperty<Duration> with initial value.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-javafx.util.Duration-boolean-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue, boolean inherits)</code> <div class="block">Create a StyleableProperty<Duration> with initial value and inherit flag.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/css/StyleConverter.html" title="class in javafx.css">StyleConverter</a><?,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleConverter.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleConverter.html#getDurationConverter--">getDurationConverter</a></span>()</code> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/css/package-summary.html">javafx.css</a> with parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-javafx.util.Duration-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-javafx.util.Duration-boolean-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue, boolean inherits)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value, and inherit flag.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-javafx.util.Duration-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue)</code> <div class="block">Create a StyleableProperty<Duration> with initial value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-javafx.util.Duration-boolean-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue, boolean inherits)</code> <div class="block">Create a StyleableProperty<Duration> with initial value and inherit flag.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Method parameters in <a href="../../../javafx/css/package-summary.html">javafx.css</a> with type arguments of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value of Duration.BLACK, and inherit flag defaulting to false.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-javafx.util.Duration-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value, and inherit flag defaulting to false.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/CssMetaData.html" title="class in javafx.css">CssMetaData</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createDurationCssMetaData-java.lang.String-java.util.function.Function-javafx.util.Duration-boolean-">createDurationCssMetaData</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue, boolean inherits)</code> <div class="block">Create a CssMetaData<S, Duration> with initial value, and inherit flag.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function)</code> <div class="block">Create a StyleableProperty<Duration>.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-javafx.util.Duration-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue)</code> <div class="block">Create a StyleableProperty<Duration> with initial value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">StyleablePropertyFactory.</span><code><span class="memberNameLink"><a href="../../../javafx/css/StyleablePropertyFactory.html#createStyleableDurationProperty-S-java.lang.String-java.lang.String-java.util.function.Function-javafx.util.Duration-boolean-">createStyleableDurationProperty</a></span>(<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a> styleable, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> cssProperty, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Function.html?is-external=true" title="class or interface in java.util.function">Function</a><<a href="../../../javafx/css/StyleablePropertyFactory.html" title="type parameter in StyleablePropertyFactory">S</a>,<a href="../../../javafx/css/StyleableProperty.html" title="interface in javafx.css">StyleableProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>>> function, <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> initialValue, boolean inherits)</code> <div class="block">Create a StyleableProperty<Duration> with initial value and inherit flag.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="javafx.scene.media"> <!-- --> </a> <h3>Uses of <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> in <a href="../../../javafx/scene/media/package-summary.html">javafx.scene.media</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/scene/media/package-summary.html">javafx.scene.media</a> that return <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#getBufferProgressTime--">getBufferProgressTime</a></span>()</code> <div class="block">Retrieves the <a href="../../../javafx/scene/media/MediaPlayer.html#bufferProgressTimeProperty--"><code>bufferProgressTime</code></a> value.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#getCurrentTime--">getCurrentTime</a></span>()</code> <div class="block">Retrieves the current media time.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#getCycleDuration--">getCycleDuration</a></span>()</code> <div class="block">Retrieves the cycle duration in seconds.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Media.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/Media.html#getDuration--">getDuration</a></span>()</code> <div class="block">Retrieve the duration in seconds of the media.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#getStartTime--">getStartTime</a></span>()</code> <div class="block">Retrieves the start time.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#getStopTime--">getStopTime</a></span>()</code> <div class="block">Retrieves the stop time.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#getTotalDuration--">getTotalDuration</a></span>()</code> <div class="block">Retrieves the total playback duration including all cycles (repetitions).</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/scene/media/package-summary.html">javafx.scene.media</a> that return types with arguments of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#bufferProgressTimeProperty--">bufferProgressTimeProperty</a></span>()</code> <div class="block">The current buffer position indicating how much media can be played without stalling the <code>MediaPlayer</code>.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#currentTimeProperty--">currentTimeProperty</a></span>()</code> <div class="block">The current media playback time.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#cycleDurationProperty--">cycleDurationProperty</a></span>()</code> <div class="block">The amount of time between the <a href="../../../javafx/scene/media/MediaPlayer.html#startTimeProperty--"><code>startTime</code></a> and <a href="../../../javafx/scene/media/MediaPlayer.html#stopTimeProperty--"><code>stopTime</code></a> of this player.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Media.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/Media.html#durationProperty--">durationProperty</a></span>()</code> <div class="block">The duration in seconds of the source media.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Pair.html" title="class in javafx.util">Pair</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaMarkerEvent.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaMarkerEvent.html#getMarker--">getMarker</a></span>()</code> <div class="block">Retrieves the marker the event represents.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/collections/ObservableMap.html" title="interface in javafx.collections">ObservableMap</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">Media.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/Media.html#getMarkers--">getMarkers</a></span>()</code> <div class="block">Retrieve the markers defined on this <code>Media</code> instance.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#startTimeProperty--">startTimeProperty</a></span>()</code> <div class="block">The time offset where media should start playing, or restart from when repeating.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ObjectProperty.html" title="class in javafx.beans.property">ObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#stopTimeProperty--">stopTimeProperty</a></span>()</code> <div class="block">The time offset where media should stop playing or restart when repeating.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/beans/property/ReadOnlyObjectProperty.html" title="class in javafx.beans.property">ReadOnlyObjectProperty</a><<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a>></code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#totalDurationProperty--">totalDurationProperty</a></span>()</code> <div class="block">The total amount of play time if allowed to play until finished.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/scene/media/package-summary.html">javafx.scene.media</a> with parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#seek-javafx.util.Duration-">seek</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> seekTime)</code> <div class="block">Seeks the player to a new playback time.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#setStartTime-javafx.util.Duration-">setStartTime</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the start time.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><span class="typeNameLabel">MediaPlayer.</span><code><span class="memberNameLink"><a href="../../../javafx/scene/media/MediaPlayer.html#setStopTime-javafx.util.Duration-">setStopTime</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> value)</code> <div class="block">Sets the stop time.</div> </td> </tr> </tbody> </table> </li> <li class="blockList"><a name="javafx.util"> <!-- --> </a> <h3>Uses of <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> in <a href="../../../javafx/util/package-summary.html">javafx.util</a></h3> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> <caption><span>Fields in <a href="../../../javafx/util/package-summary.html">javafx.util</a> declared as <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#INDEFINITE">INDEFINITE</a></span></code> <div class="block">An Infinite Duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#ONE">ONE</a></span></code> <div class="block">A Duration of 1 millisecond.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#UNKNOWN">UNKNOWN</a></span></code> <div class="block">A Duration of some unknown amount of time.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#ZERO">ZERO</a></span></code> <div class="block">A Duration of 0 (no time).</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/util/package-summary.html">javafx.util</a> that return <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#add-javafx.util.Duration-">add</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Add this instance and another Duration instance to return a new Duration instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#divide-double-">divide</a></span>(double n)</code> <div class="block">Divide this instance by a number to return a new Duration instance.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#divide-javafx.util.Duration-">divide</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> <div class="block"><span class="deprecationComment">This method produces surprising results by not taking units into account. Use <a href="../../../javafx/util/Duration.html#divide-double-"><code>divide(double)</code></a> instead.</span></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#hours-double-">hours</a></span>(double h)</code> <div class="block">Factory method that returns a Duration instance representing the specified number of hours.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#millis-double-">millis</a></span>(double ms)</code> <div class="block">Factory method that returns a Duration instance for a specified number of milliseconds.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#minutes-double-">minutes</a></span>(double m)</code> <div class="block">Factory method that returns a Duration instance representing the specified number of minutes.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#multiply-double-">multiply</a></span>(double n)</code> <div class="block">Multiply this instance with a number representing millis and return a new Duration.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#multiply-javafx.util.Duration-">multiply</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> <div class="block"><span class="deprecationComment">This method produces surprising results by not taking units into account. Use <a href="../../../javafx/util/Duration.html#multiply-double-"><code>multiply(double)</code></a> instead.</span></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#negate--">negate</a></span>()</code> <div class="block">Return a new Duration instance which has a negative number of milliseconds from this instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#seconds-double-">seconds</a></span>(double s)</code> <div class="block">Factory method that returns a Duration instance representing the specified number of seconds.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#subtract-javafx.util.Duration-">subtract</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Subtract other Duration instance from this instance to return a new Duration instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>static <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#valueOf-java.lang.String-">valueOf</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> time)</code> <div class="block">Factory method that returns a Duration instance for a specified amount of time.</div> </td> </tr> </tbody> </table> <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> <caption><span>Methods in <a href="../../../javafx/util/package-summary.html">javafx.util</a> with parameters of type <a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tbody> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#add-javafx.util.Duration-">add</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Add this instance and another Duration instance to return a new Duration instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#compareTo-javafx.util.Duration-">compareTo</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> d)</code> <div class="block">Compares durations represented by this object and the specified object.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#divide-javafx.util.Duration-">divide</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> <div class="block"><span class="deprecationComment">This method produces surprising results by not taking units into account. Use <a href="../../../javafx/util/Duration.html#divide-double-"><code>divide(double)</code></a> instead.</span></div> </div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#greaterThan-javafx.util.Duration-">greaterThan</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Returns true if the specified duration is greater than (>) this instance.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#greaterThanOrEqualTo-javafx.util.Duration-">greaterThanOrEqualTo</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Returns true if the specified duration is greater than or equal to (>=) this instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#lessThan-javafx.util.Duration-">lessThan</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Returns true if the specified duration is less than (<) this instance.</div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#lessThanOrEqualTo-javafx.util.Duration-">lessThanOrEqualTo</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Returns true if the specified duration is less than or equal to (<=) this instance.</div> </td> </tr> <tr class="rowColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#multiply-javafx.util.Duration-">multiply</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block"><span class="deprecatedLabel">Deprecated.</span> <div class="block"><span class="deprecationComment">This method produces surprising results by not taking units into account. Use <a href="../../../javafx/util/Duration.html#multiply-double-"><code>multiply(double)</code></a> instead.</span></div> </div> </td> </tr> <tr class="altColor"> <td class="colFirst"><code><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a></code></td> <td class="colLast"><span class="typeNameLabel">Duration.</span><code><span class="memberNameLink"><a href="../../../javafx/util/Duration.html#subtract-javafx.util.Duration-">subtract</a></span>(<a href="../../../javafx/util/Duration.html" title="class in javafx.util">Duration</a> other)</code> <div class="block">Subtract other Duration instance from this instance to return a new Duration instance.</div> </td> </tr> </tbody> </table> </li> </ul> </li> </ul> </div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../javafx/util/Duration.html" title="class in javafx.util">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../../../overview-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-all.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> <div class="aboutLanguage">JavaFX 8</div> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../index.html?javafx/util/class-use/Duration.html" target="_top">Frames</a></li> <li><a href="Duration.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small><small><a href="https://docs.oracle.com/javase/8/docs/legal/cpyr.html">Copyright</a> (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.</small></small></p> </body> </html>