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, setEasingMode
getAmplitude()
,
setAmplitude(double)
getOscillations()
,
setOscillations(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 amplitudeProperty()
getAmplitude()
,
setAmplitude(double)
protected double baseCurve(double v)
EasingInterpolator
baseCurve
in class EasingInterpolator
v
- The normalized value/time/progress of the interpolation (between 0 and 1).Interpolator.curve(double)
public double getAmplitude()
amplitudeProperty()
public double getOscillations()
oscillationsProperty()
public javafx.beans.property.DoubleProperty oscillationsProperty()
getOscillations()
,
setOscillations(double)
public void setAmplitude(double amplitude)
amplitude
- The amplitude.amplitudeProperty()
public void setOscillations(double oscillations)
oscillations
- The oscillations.oscillationsProperty()
Copyright © 2013 ExtFX. All Rights Reserved.