Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

A SimpleIterator 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

javafx.animation.Interpolator

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicDISCRETEInterpolator

Built-in interpolator that provides discrete time interpolation.

Built-in interpolator that provides discrete time interpolation. The return value of interpolate() is endValue only when the input faction is 1.0, and startValue otherwise.

Profile: common

 
publicEASEBOTHInterpolator

Built-in interpolator instance that provides ease in/out behavior.

Built-in interpolator instance that provides ease in/out behavior. It uses default values of 0.2 and 0.2 for the acceleration and deceleration factors, respectively.

Profile: common

 
publicEASEINInterpolator

Built-in interpolator instance that provides ease in behavior.

Built-in interpolator instance that provides ease in behavior. It uses value of 0.2 for the acceleration factor.

Profile: common

 
publicEASEOUTInterpolator

Built-in interpolator instance that provides ease out behavior.

Built-in interpolator instance that provides ease out behavior. It uses value of 0.2 for the deceleration factor.

Profile: common

 
publicLINEARInterpolator

Built-in interpolator that provides linear time interpolation.

Built-in interpolator that provides linear time interpolation. The return value of interpolate() is startValue + (endValue - startValue) * faction.

Profile: common

 

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 and endValue object along with faction between 0.0 and 1.0 and returns another object, between startValue and endValue.

This function takes startValue object and endValue object along with faction between 0.0 and 1.0 and returns another object, between startValue 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 numeric endValue along with faction between 0.0 and 1.0 and returns another numeric value, between startValue and endValue.

This function takes an numeric startValue and an numeric endValue along with faction between 0.0 and 1.0 and returns another numeric value, between startValue 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 integer endValue along with faction between 0.0 and 1.0 and returns another integer value, between startValue and endValue.

This function takes an integer startValue and an integer endValue along with faction between 0.0 and 1.0 and returns another integer value, between startValue 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 and endValue along with faction between 0.0 and 1.0 and returns another value, between startValue and endValue.

This function takes startValue and endValue along with faction between 0.0 and 1.0 and returns another value, between startValue 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

 
public SPLINE(x1: Number, y1: Number, x2: Number, y2: Number) : Interpolator

Built-in interpolator instance that is shaped using the spline control points defined by (x1, y1) and (x2, y2).

Built-in interpolator instance that is shaped using the spline control points defined by (x1, y1) and (x2, y2). The anchor points of the spline are implicitly defined as (0.0, 0.0) and (1.0, 1.0).

Parameters
x1
x coordinate of the first control point
y1
y coordinate of the first control point
x2
x coordinate of the second control point
y2
y coordinate of the second control point
Returns
Interpolator
A spline interpolator

Profile: common