public class ScaleTransition
extends javafx.animation.Transition
Transition creates a scale animation that spans the provided
duration.
Unlike ScaleTransition this transition does not
operate on scaleX,scaleY and scaleZ variables of the
node at regular interval but uses Scale.xProperty(),
Scale.yProperty() and Scale.zProperty()
| Constructor and Description |
|---|
ScaleTransition(javafx.util.Duration duration,
javafx.scene.transform.Scale scale)
Create a new scale transition
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
interpolate(double frac) |
void |
setFromX(double fromX)
Set a new from value for the x coordinate (default=1)
|
void |
setFromY(double fromY)
Set a new from value for the y coordinate (default=1);
|
void |
setFromZ(double fromZ)
Set a new from value for the z coordinate (default=1)
|
void |
setToX(double toX)
Set a new to value for the x coordinate (default=1)
|
void |
setToY(double toY)
Set a new to value for the y coordinate (default=1);
|
void |
setToZ(double toZ)
Set a new to value for the z coordinate (default=1);
|
getCachedInterpolator, getInterpolator, getParentTargetNode, interpolatorProperty, setInterpolatorautoReverseProperty, 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, totalDurationPropertypublic ScaleTransition(javafx.util.Duration duration,
javafx.scene.transform.Scale scale)
duration - the durationscale - the scalepublic void setFromX(double fromX)
fromX - the new valuepublic void setToX(double toX)
toX - the new valuepublic void setFromY(double fromY)
fromY - the new valuepublic void setToY(double toY)
toY - the new valuepublic void setFromZ(double fromZ)
fromZ - the new valuepublic void setToZ(double toZ)
toZ - the new valueprotected void interpolate(double frac)
interpolate in class javafx.animation.Transition