public class ElasticInterpolator extends EasingInterpolator
| Type | Property and Description |
|---|---|
javafx.beans.property.DoubleProperty |
amplitude
The amplitude.
|
javafx.beans.property.DoubleProperty |
oscillations
The oscillations property.
|
easingModeProperty| Constructor and Description |
|---|
ElasticInterpolator()
Default constructor.
|
ElasticInterpolator(EasingMode easingMode)
Constructs the interpolator with a specific easing mode.
|
ElasticInterpolator(EasingMode easingMode,
double amplitude,
double oscillations)
Sets the easing mode.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.DoubleProperty |
amplitudeProperty()
The amplitude.
|
protected double |
baseCurve(double v)
Defines the base curve for the interpolator.
|
double |
getAmplitude()
Gets the amplitude.
|
double |
getOscillations()
Gets the number of oscillations.
|
javafx.beans.property.DoubleProperty |
oscillationsProperty()
The oscillations property.
|
void |
setAmplitude(double amplitude)
Sets the amplitude.
|
void |
setOscillations(double oscillations)
Sets the number of oscillations.
|
curve, easingModeProperty, getEasingMode, setEasingModepublic javafx.beans.property.DoubleProperty oscillationsProperty
getOscillations(),
setOscillations(double)public javafx.beans.property.DoubleProperty amplitudeProperty
getAmplitude(),
setAmplitude(double)public ElasticInterpolator()
public ElasticInterpolator(EasingMode easingMode)
easingMode - The easing mode.public ElasticInterpolator(EasingMode easingMode, double amplitude, double oscillations)
easingMode - The easing mode.EasingInterpolator.easingModeProperty()public javafx.beans.property.DoubleProperty oscillationsProperty()
getOscillations(),
setOscillations(double)public javafx.beans.property.DoubleProperty amplitudeProperty()
getAmplitude(),
setAmplitude(double)public double getAmplitude()
amplitudeProperty()public void setAmplitude(double amplitude)
amplitude - The amplitude.amplitudeProperty()public double getOscillations()
oscillationsProperty()public void setOscillations(double oscillations)
oscillations - The oscillations.oscillationsProperty()protected double baseCurve(double v)
EasingInterpolatorbaseCurve in class EasingInterpolatorv - The normalized value/time/progress of the interpolation (between 0 and 1).Interpolator.curve(double)Copyright © 2016. All rights reserved.