APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.scenario.animation

public final Class LinearInterpolator

extends Interpolator
Class Inheritance
Imports
javafx.animation.Interpolator, javafx.geometry.Point2D, java.util.Arrays, .Objects

Implementation of a piecewise linear interpolator as described by CSS Easing Functions Level 2

Field Summary

Modifier and TypeField and Description
private final double[]
Inherited from javafx.animation.Interpolator:
DISCRETEEASE_BOTHEASE_INEASE_OUTLINEARSTEP_ENDSTEP_START

Constructor Summary

AccessConstructor and Description
public
LinearInterpolator(Point2D[] controlPoints)

Method Summary

Modifier and TypeMethod and Description
private static void
canonicalize(double[] controlPoints, int n)

public double
curve(double t)

Implements abstract javafx.animation.Interpolator.curve.

Mapping from [0.0..1.0] to itself.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from javafx.animation.Interpolator:
interpolateinterpolateinterpolateinterpolateinterpolateofLinearofSplineofStepsofTangentofTangentSPLINESTEPSTANGENTTANGENT

Field Detail

controlPointsback to summary
private final double[] controlPoints

Constructor Detail

LinearInterpolatorback to summary
public LinearInterpolator(Point2D[] controlPoints)

Method Detail

canonicalizeback to summary
private static void canonicalize(double[] controlPoints, int n)
curveback to summary
public double curve(double t)

Implements abstract javafx.animation.Interpolator.curve.

Doc from javafx.animation.Interpolator.curve.

Mapping from [0.0..1.0] to itself.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override