18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.animation;
27
28 import javafx.beans.property.DoubleProperty;
29 import javafx.beans.property.ObjectProperty;
30 import javafx.beans.property.ObjectPropertyBase;
31 import javafx.beans.property.SimpleDoubleProperty;
32 import javafx.beans.property.SimpleObjectProperty;
33 import javafx.scene.Node;
34 import javafx.util.Duration;
35
36 /**
37 * This {@code Transition} creates a scale animation that spans its
38 * {@link #duration}. This is done by updating the {@code scaleX},
39 * {@code scaleY} and {@code scaleZ} variables of the {@code node} at regular
40 * interval.
41 * <p>
42 * It starts from the ({@code fromX}, {@code fromY}, {@code fromZ}) value if
43 * provided else uses the {@code node}'s ({@code scaleX}, {@code scaleY},
44 * {@code scaleZ}) value.
45 * <p>
46 * It stops at the ({@code toX}, {@code toY}, {@code toZ}) value if provided
47 * else it will use start value plus ({@code byX}, {@code byY}, {@code byZ})
48 * value.
49 * <p>
50 * The ({@code toX}, {@code toY}, {@code toZ}) value takes precedence if both (
51 * {@code toX}, {@code toY}, {@code toZ}) and ({@code byX}, {@code byY},
52 * {@code byZ}) values are specified.
53 *
54 * <p>
55 * Code Segment Example:
56 * </p>
57 *
58 * <pre>
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.animation;
27
28 import javafx.beans.property.DoubleProperty;
29 import javafx.beans.property.ObjectProperty;
30 import javafx.beans.property.ObjectPropertyBase;
31 import javafx.beans.property.SimpleDoubleProperty;
32 import javafx.beans.property.SimpleObjectProperty;
33 import javafx.scene.Node;
34 import javafx.util.Duration;
35
36 /**
37 * This {@code Transition} creates a scale animation that spans its
38 * {@link #durationProperty() duration}. This is done by updating the {@code scaleX},
39 * {@code scaleY} and {@code scaleZ} variables of the {@code node} at regular
40 * interval.
41 * <p>
42 * It starts from the ({@code fromX}, {@code fromY}, {@code fromZ}) value if
43 * provided else uses the {@code node}'s ({@code scaleX}, {@code scaleY},
44 * {@code scaleZ}) value.
45 * <p>
46 * It stops at the ({@code toX}, {@code toY}, {@code toZ}) value if provided
47 * else it will use start value plus ({@code byX}, {@code byY}, {@code byZ})
48 * value.
49 * <p>
50 * The ({@code toX}, {@code toY}, {@code toZ}) value takes precedence if both (
51 * {@code toX}, {@code toY}, {@code toZ}) and ({@code byX}, {@code byY},
52 * {@code byZ}) values are specified.
53 *
54 * <p>
55 * Code Segment Example:
56 * </p>
57 *
58 * <pre>
|