Module com.gluonhq.charm.glisten
Class CachedTimelineTransition
- java.lang.Object
-
- javafx.animation.Animation
-
- javafx.animation.Transition
-
- com.gluonhq.charm.glisten.animation.MobileTransition
-
- com.gluonhq.charm.glisten.animation.CachedTimelineTransition
-
- Direct Known Subclasses:
BounceInDownTransition
,BounceInLeftTransition
,BounceInRightTransition
,BounceInTransition
,BounceInUpTransition
,BounceOutDownTransition
,BounceOutLeftTransition
,BounceOutRightTransition
,BounceOutTransition
,BounceOutUpTransition
,BounceTransition
,FadeInDownBigTransition
,FadeInDownTransition
,FadeInLeftBigTransition
,FadeInLeftTransition
,FadeInRightBigTransition
,FadeInRightTransition
,FadeInTransition
,FadeInUpBigTransition
,FadeInUpTransition
,FadeOutDownBigTransition
,FadeOutDownTransition
,FadeOutLeftBigTransition
,FadeOutLeftTransition
,FadeOutRightBigTransition
,FadeOutRightTransition
,FadeOutTransition
,FadeOutUpBigTransition
,FadeOutUpTransition
,FlashTransition
,FlipInXTransition
,FlipInYTransition
,FlipOutXTransition
,FlipOutYTransition
,FlipTransition
,HingeTransition
,NoTransition
,PulseTransition
,RollInTransition
,RollOutTransition
,RotateInDownLeftTransition
,RotateInDownRightTransition
,RotateInTransition
,RotateInUpLeftTransition
,RotateInUpRightTransition
,RotateOutDownLeftTransition
,RotateOutDownRightTransition
,RotateOutTransition
,RotateOutUpLeftTransition
,RotateOutUpRightTransition
,ShakeTransition
,SwingTransition
,TadaTransition
,WobbleTransition
public class CachedTimelineTransition extends MobileTransition
A Transition that uses a Timeline internally and turns SPEED caching on for the animated node during the animation.- Since:
- 2.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 Modifier and Type Field Description protected Node
node
protected Timeline
timeline
protected static Interpolator
WEB_EASE
-
Fields inherited from class javafx.animation.Animation
INDEFINITE
-
-
Constructor Summary
Constructors Constructor Description CachedTimelineTransition(Node node, Timeline timeline)
Create new CachedTimelineTransitionCachedTimelineTransition(Node node, Timeline timeline, boolean useCache)
Create new CachedTimelineTransitionCachedTimelineTransition(Node node, Timeline timeline, boolean useCache, boolean opacityInterpolated)
Create new CachedTimelineTransition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
hideNode()
Called before starting the animation, in those cases where the animation will set the opacity to 0.0 right at the start.protected void
interpolate(double d)
protected boolean
isOpacityInterpolated()
void
pause()
protected void
starting()
Called when the animation is startingprotected void
stopping()
Called when the animation is stopping-
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, play, playFrom, playFrom, playFromStart, rateProperty, setAutoReverse, setCycleCount, setCycleDuration, setDelay, setOnFinished, setRate, setStatus, statusProperty, stop, totalDurationProperty
-
-
-
-
Field Detail
-
WEB_EASE
protected static final Interpolator WEB_EASE
-
node
protected final Node node
-
timeline
protected Timeline timeline
-
-
Constructor Detail
-
CachedTimelineTransition
public CachedTimelineTransition(Node node, Timeline timeline)
Create new CachedTimelineTransition- Parameters:
node
- The node that is being animated by the timelinetimeline
- The timeline for the animation, it should be from 0 to 1 seconds
-
CachedTimelineTransition
public CachedTimelineTransition(Node node, Timeline timeline, boolean useCache)
Create new CachedTimelineTransition- Parameters:
node
- The node that is being animated by the timelinetimeline
- The timeline for the animation, it should be from 0 to 1 secondsuseCache
- When true the node is cached as image during the animation
-
CachedTimelineTransition
public CachedTimelineTransition(Node node, Timeline timeline, boolean useCache, boolean opacityInterpolated)
Create new CachedTimelineTransition- Parameters:
node
- The node that is being animated by the timelinetimeline
- The timeline for the animation, it should be from 0 to 1 secondsuseCache
- When true the node is cached as image during the animationopacityInterpolated
- When true opacity is interpolated during the transition
-
-
Method Detail
-
starting
protected void starting()
Called when the animation is starting- Overrides:
starting
in classMobileTransition
-
stopping
protected void stopping()
Called when the animation is stopping- Overrides:
stopping
in classMobileTransition
-
interpolate
protected void interpolate(double d)
- Specified by:
interpolate
in classTransition
-
hideNode
public final void hideNode()
Called before starting the animation, in those cases where the animation will set the opacity to 0.0 right at the start. It must be called from the different transitions, in order to hide the node so it won't be visible during the initial delay, when it is added to the scene but the animation has not started yet.
-
isOpacityInterpolated
protected boolean isOpacityInterpolated()
-
-