Overview
A SimpleInterpolator is defined in terms of a "curve". It can be used for any value type that either implements Interpolatable or that extends java.lang.Number.
See Also:
Interpolator
Profile: common
Inherited Variables
Function Summary
- public abstract curve(t: Number) : Number
-
Mapping from [0.0..1.0] to itself.
Mapping from [0.0..1.0] to itself.
-
Parameters
- t
- time, but normalized to the range [0.0..1.0], where 0.0 is the start of the current interval (KeyFrame), while 1.0 is the end of the current interval (KeyFrame). Usually a function that increases monotonically.
-
Returns
- Number
Profile: common
- public interpolate(startValue: java.lang.Object, endValue: java.lang.Object, fraction: Number) : java.lang.Object
-
This function takes
startValue
object andendValue
object along withfaction
between 0.0 and 1.0 and returns another object, betweenstartValue
and endValue.This function takes
startValue
object andendValue
object along withfaction
between 0.0 and 1.0 and returns another object, betweenstartValue
and endValue. The purpose of the function is to define how time (represented as a (0.0 - 1.0) fraction of the duration of an animation) is altered to derive different value calculations during an animation.-
Parameters
- startValue
- endValue
- fraction
-
Returns
- Object
Profile: common
- public interpolate(startValue: Number, endValue: Number, fraction: Number) : Number
-
This function takes an numeric
startValue
and an numericendValue
along withfaction
between 0.0 and 1.0 and returns another numeric value, betweenstartValue
and endValue.This function takes an numeric
startValue
and an numericendValue
along withfaction
between 0.0 and 1.0 and returns another numeric value, betweenstartValue
and endValue. The purpose of the function is to define how time (represented as a (0.0 - 1.0) fraction of the duration of an animation) is altered to derive different value calculations during an animation.-
Parameters
- startValue
- endValue
- fraction
-
Returns
- Number
Profile: common
- public interpolate(startValue: Integer, endValue: Integer, fraction: Number) : Integer
-
This function takes an integer
startValue
and an integerendValue
along withfaction
between 0.0 and 1.0 and returns another integer value, betweenstartValue
and endValue.This function takes an integer
startValue
and an integerendValue
along withfaction
between 0.0 and 1.0 and returns another integer value, betweenstartValue
and endValue. The purpose of the function is to define how time (represented as a (0.0 - 1.0) fraction of the duration of an animation) is altered to derive different value calculations during an animation.-
Parameters
- startValue
- endValue
- fraction
-
Returns
- Integer
Profile: common
Inherited Functions
javafx.animation.Interpolator
- public abstract interpolate(startValue: java.lang.Object, endValue: java.lang.Object, fraction: Number) : java.lang.Object
-
This function takes
startValue
andendValue
along withfaction
between 0.0 and 1.0 and returns another value, betweenstartValue
and endValue.This function takes
startValue
andendValue
along withfaction
between 0.0 and 1.0 and returns another value, betweenstartValue
and endValue. The purpose of the function is to define how time (represented as a (0.0 - 1.0) fraction of the duration of an animation) is altered to derive different value calculations during an animation.-
Parameters
- startValue
- start value
- endValue
- end value
- fraction
- a value between 0.0 and 1.0
-
Returns
- Object
- interpolated value
Profile: common