Overview
This Transition creates a scale animation that spans its 
 duration. This is done by updating the scaleX, 
 scaleY and scaleZ variables of the node at regular
 interval.
 
 It starts from the (fromX, fromY, fromZ) value
 if provided else uses the node's (scaleX, scaleY, 
 scaleZ) value.
 
 It stops at the (toX, toY, toZ) value if 
 provided else it will use start value plus (byX, byY, 
 byZ) value.
 
 The (toX, toY, toZ) value takes precedence if 
 both (toX, toY, toZ) and (byX, byY,
 byZ) values are specified. 
 
Code Segment Example:
import javafx.scene.shape.*;
import javafx.animation.transition.*;
...
    var node = Rectangle {
        x: 100 y: 40
        height: 100 width:  100
        arcHeight: 50 arcWidth: 50
        fill: Color.VIOLET
    }
    var scaleTransition = ScaleTransition {
        duration: 2s node: node
        byX: 1.5 byY: 1.5 
        repeatCount:4 autoReverse: true
    }
    scaleTransition.play();
...
Profile: common
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description | 
|---|---|---|---|---|---|---|---|
| public | byX | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the incremented stop X scale value, from the start, of 
 this   | 
| public | byY | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the incremented stop X scale value, from the start, of 
 this   | 
| public | byZ | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the incremented stop Z scale value, from the start, of 
 this   | 
| public | duration | Duration | ![]()  | ![]()  | ![]()  | 400ms | 
 The length of this   
The length of this  Profile: common  | 
| public | fromX | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the start X scale value of this   | 
| public | fromY | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the start Y scale value of this   | 
| public | fromZ | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the start Z scale value of this   | 
| public | toX | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 Specifies the stop X scale value of this   | 
| public | toY | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 The stop Y scale value of this   | 
| public | toZ | Number | ![]()  | ![]()  | ![]()  | Transition.UNDEFINED | 
 The stop Z scale value of this   | 
Inherited Variables
javafx.animation.transition.Transition
| access | name | type | Can Read | Can Init | Can Write | Default Value | description | 
|---|---|---|---|---|---|---|---|
| public | action | function():Void | ![]()  | ![]()  | ![]()  | null | 
 The action to be executed at the conclusion of this   | 
| public | interpolator | Interpolator | ![]()  | ![]()  | ![]()  | EASEBOTH | 
 Controls the timing for acceleration and deceleration at each transition cycle.  
Controls the timing for acceleration and deceleration at each transition cycle. This may only be changed prior to starting the transition or after the transition has ended. If changed during a transition then the change will not take effect until the next transition. Default interpolator is set to Interpolator#EASEBOTH. EASEBOTHProfile: common  | 
| public | node | Node | ![]()  | ![]()  | ![]()  | null | 
 The target node of this   | 
| protected | parent | Transition | subclass | subclass | subclass | null | 
 The parent of this   
The parent of this  Profile: common  | 
javafx.animation.Timeline
| access | name | type | Can Read | Can Init | Can Write | Default Value | description | 
|---|---|---|---|---|---|---|---|
| public | autoReverse | Boolean | ![]()  | ![]()  | ![]()  | false | 
 Defines whether this animation reverses direction on alternating cycles.  
Defines whether this animation reverses direction on alternating
 cycles.
 If  Profile: common  | 
| public-read | currentRate | Number | ![]()  | 0.0 | 
 Read-only variable to indicate current direction/speed at which the
   
Read-only variable to indicate current direction/speed at which the
  
  Profile: common  | 
||
| public-read protected | cycleDuration | Duration | ![]()  | subclass | subclass | 0ms | 
 Read-only variable to indicate the duration of one cycle of this
   
Read-only variable to indicate the duration of one cycle of this
  This is set to the largest time value of its keyFrames. 0msProfile: common  | 
| public-init | framerate | Number | ![]()  | ![]()  | 
 The maximum framerate at which this animation will run, in frames per second.  
The maximum framerate at which this animation will run, in frames per second. This can be used, for example, to keep particularly complex Timelines from over-consuming system resources. By default, a Timeline's framerate is not explicitly limited, meaning the Timeline will run at an optimal framerate for the underlying platform. Profile: common  | 
||
| public | interpolate | Boolean | ![]()  | ![]()  | ![]()  | true | 
 Enable/disable interpolation.  | 
| public | keyFrames | KeyFrame[] | ![]()  | ![]()  | ![]()  | 
 Defines the sequence of   
Defines the sequence of  
See Also:
 Profile: common  | 
|
| public-read | paused | Boolean | ![]()  | 
 Read-only var that indicates whether the animation is currently paused.  
Read-only var that indicates whether the animation is currently paused. 
 This value is initially  
 Note that  Profile: common  | 
|||
| public | rate | Number | ![]()  | ![]()  | ![]()  | 1.0 | 
 Defines the direction/speed at which the   
Defines the direction/speed at which the  
 The absolute value of  
 Rate  
 Inverting the rate of a running  Profile: common  | 
| public | repeatCount | Number | ![]()  | ![]()  | ![]()  | 1.0 | 
 Defines the number of cycles in this animation.  
Defines the number of cycles in this animation.
 The  Profile: common  | 
| public-read | running | Boolean | ![]()  | 
 Read-only var that indicates whether the animation is currently running.  
Read-only var that indicates whether the animation is currently running. 
 This value is initially  
 If  
 Note that  Profile: common  | 
|||
| public | time | Duration | ![]()  | ![]()  | ![]()  | 0ms | 
 Defines the   
Defines the  
 If  
 If user wants to bind the variable and update it simultaneously, bidirectional
  
   Profile: common  | 
| public-read | totalDuration | Duration | ![]()  | 0ms | 
 Read-only variable to indicate the total duration of this
   
Read-only variable to indicate the total duration of this
  This is set to cycleDuration * repeatCount. 0msProfile: common  | 
Function Summary
- protected rebuildKeyFrames() : KeyFrame[]
 
Inherited Functions
javafx.animation.transition.Transition
- protected getTargetNode() : Node
 - protected markDirty() : Void
 - 
Subclasses invoke this function to mark the Transition as dirty and in need of rebuilding the keyFrames for the transition.
Subclasses invoke this function to mark the Transition as dirty and in need of rebuilding the keyFrames for the transition. This function only marks the state as dirty, a subsequent call to rebuild() is necessary to actually rebuild the keyframes. Generally this is done automatically when an animation is started, but can be forced if semantics require it.
 - public play() : Void
 - public playFromStart() : Void
 - 
A convenience function which plays this
Transitionfrom the initial position in the forward direction.
A convenience function which plays this
Transitionfrom the initial position in the forward direction.See Timeline#playFromStart() for details.
Profile: common
 - public rebuild() : Void
 - 
Rebuilds the keyFrames for this Transition if and only if the transition is dirty and a transition is not currently running (where 'running' includes paused transitions).
Rebuilds the keyFrames for this Transition if and only if the transition is dirty and a transition is not currently running (where 'running' includes paused transitions).
 - protected abstract rebuildKeyFrames() : KeyFrame[]
 - public stop() : Void
 
javafx.animation.Timeline
- public evaluateKeyValues() : Void
 - 
Instructs the
Timelineto evaluate allKeyValue.value()s in the Timeline.
Instructs the
Timelineto evaluate allKeyValue.value()s in the Timeline.See Also:
KeyFrame.valuesProfile: common
 - public pause() : Void
 - public play() : Void
 - 
Plays
Timelinefrom current position in the direction indicated byrate.
Plays
Timelinefrom current position in the direction indicated byrate. If the timeline is running, it has no effect.When
rate> 0 (forward play), if aTimelineis already positioned at the end, the first cycle will not be played, it is considered to have already finished. This also applies to a backward (rate< 0) cycle if a timeline is positioned at the beginning. However, if theTimelinehasrepeatCount> 1, following cycle(s) will be played as usual.When
Timelinereaches the end,Timelineis stopped and the play head remains at the end.To play a
Timelinebackwards from the end:
timeline.rate = negative rate
timeline.time = overall duration of timeline
timeline.play()
Note:
play()is an asynchronous call,Timelinemay not start immediately.Profile: common
 - public playFromStart() : Void
 - 
Plays timeline from initial position in forward direction.
Plays timeline from initial position in forward direction.
It is equivalent to
timeline.stop();
timeline.rate = Math.abs(timeline.rate); timeline.time = 0.0s;
timeline.play();
Note:
playFromStart()is an asynchronous call,Timelinemay not start immediately.Profile: common
 - public stop() : Void
 
