Package javafx.animation
Class TickCalculation
java.lang.Object
javafx.animation.TickCalculation
- Author:
- Bruno Salmon
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
add
(long op1, long op2) static long
fromDuration
(Duration duration) static long
fromDuration
(Duration duration, double rate) static long
fromMillis
(double millis) static long
fromNano
(long nano) static long
sub
(long op1, long op2) static Duration
toDuration
(long ticks) static long
toMillis
(long ticks)
-
Field Details
-
TICKS_PER_SECOND
public static final int TICKS_PER_SECOND- See Also:
-
-
Method Details
-
add
public static long add(long op1, long op2) -
sub
public static long sub(long op1, long op2) -
fromMillis
public static long fromMillis(double millis) -
fromNano
public static long fromNano(long nano) -
fromDuration
-
fromDuration
-
toDuration
-
toMillis
public static long toMillis(long ticks)
-