- java.lang.Object
-
- javafx.animation.Animation
-
- javafx.animation.Transition
-
- com.gluonhq.charm.glisten.animation.MobileTransition
-
- com.gluonhq.charm.glisten.animation.CachedTimelineTransition
-
- com.gluonhq.charm.glisten.animation.SwingTransition
-
public class SwingTransition extends CachedTimelineTransition
Animate a swing effect on the given node Port of Swing from Animate.css by Dan Eden@keyframes swing { 20% { transform: rotate(15deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(5deg); } 80% { transform: rotate(-5deg); } 100% { transform: rotate(0deg); } }
- 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 inherited from class com.gluonhq.charm.glisten.animation.CachedTimelineTransition
node, timeline, WEB_EASE
-
Fields inherited from class javafx.animation.Animation
INDEFINITE
-
-
Constructor Summary
Constructors Constructor Description SwingTransition(Node node)
Create new SwingTransitionSwingTransition(Node node, Duration duration)
Create new SwingTransition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
starting()
Called when the animation is starting-
Methods inherited from class com.gluonhq.charm.glisten.animation.CachedTimelineTransition
hideNode, interpolate, isOpacityInterpolated, pause, 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
-
-
-
-
Constructor Detail
-
SwingTransition
public SwingTransition(Node node)
Create new SwingTransition- Parameters:
node
- The node to affect
-
-
Method Detail
-
starting
protected void starting()
Description copied from class:CachedTimelineTransition
Called when the animation is starting- Overrides:
starting
in classCachedTimelineTransition
-
-