Module com.gluonhq.charm.glisten
Class ShrinkExpandAnimation
- java.lang.Object
-
- javafx.animation.Animation
-
- javafx.animation.Transition
-
- com.gluonhq.charm.glisten.animation.ShrinkExpandAnimation
-
public final class ShrinkExpandAnimation extends Transition
An animation that will shrink or grow a Node. The direction of the animation is specified by theexpand
parameter of the constructor.- Since:
- 1.0.0
-
-
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
Animation.Status
-
-
Field Summary
-
Fields inherited from class javafx.animation.Animation
INDEFINITE
-
-
Constructor Summary
Constructors Constructor Description ShrinkExpandAnimation(Node n, boolean expand)
Creates a new ShrinkExpandAnimation instance, where the animation will initially operate in the direction specified by the boolean argument: if true, the node will expand into view when the animation is played, and if false, the node will shrink out of view when the animation is played.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
interpolate(double frac)
-
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
-
-
-
-
Constructor Detail
-
ShrinkExpandAnimation
public ShrinkExpandAnimation(Node n, boolean expand)
Creates a new ShrinkExpandAnimation instance, where the animation will initially operate in the direction specified by the boolean argument: if true, the node will expand into view when the animation is played, and if false, the node will shrink out of view when the animation is played.- Parameters:
n
- TheNode
to animate.expand
- Whether to expand (true), or shrink (false).
-
-
Method Detail
-
interpolate
protected void interpolate(double frac)
- Specified by:
interpolate
in classTransition
-
-