java.lang.Object
javafx.animation.Animation
javafx.animation.Transition
app.ui.menu.Elephant.JumpTransition
- Enclosing class:
- Elephant
class Elephant.JumpTransition
extends javafx.animation.Transition
-
Property Summary
Properties inherited from class javafx.animation.Transition
interpolator
Properties inherited from class javafx.animation.Animation
autoReverse, currentRate, currentTime, cycleCount, cycleDuration, delay, onFinished, rate, status, totalDuration
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.animation.Animation
javafx.animation.Animation.Status
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) double
(package private) double
(package private) javafx.geometry.Point2D
(package private) javafx.geometry.Point2D
Fields inherited from class javafx.animation.Animation
INDEFINITE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) double
calculateY
(double x) protected void
interpolate
(double fraction) (package private) void
setSquish
(double squish) Methods inherited from class javafx.animation.Transition
getCachedInterpolator, getInterpolator, getParentTargetNode, interpolatorProperty, setInterpolator
Methods inherited from class javafx.animation.Animation
autoReverseProperty, currentRateProperty, currentTimeProperty, cycleCountProperty, cycleDurationProperty, delayProperty, getCuePoints, getCurrentRate, getCurrentTime, getCycleCount, getCycleDuration, getDelay, getOnFinished, getRate, getStatus, getTargetFramerate, getTotalDuration, isAutoReverse, jumpTo, jumpTo, onFinishedProperty, pause, play, playFrom, playFrom, playFromStart, rateProperty, setAutoReverse, setCycleCount, setCycleDuration, setDelay, setOnFinished, setRate, setStatus, statusProperty, stop, totalDurationProperty
-
Field Details
-
target
javafx.geometry.Point2D target -
start
javafx.geometry.Point2D start -
squishY
double squishY -
squishFraction
double squishFraction
-
-
Constructor Details
-
JumpTransition
public JumpTransition(double speed, javafx.geometry.Point2D target)
-
-
Method Details
-
interpolate
protected void interpolate(double fraction) - Specified by:
interpolate
in classjavafx.animation.Transition
-
setSquish
void setSquish(double squish) -
calculateY
double calculateY(double x)
-